Skip to content

Commit fc42c3a

Browse files
author
linyuan.yang
committed
同一版本号
1 parent aff4203 commit fc42c3a

5 files changed

Lines changed: 4 additions & 7 deletions

File tree

packages/app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "@sbox/app",
3-
"version": "0.0.1",
43
"private": true,
54
"type": "module",
65
"scripts": {

packages/app/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-config-schema/schema.json",
33
"productName": "sbox",
4-
"version": "../package.json",
4+
"version": "../../../package.json",
55
"identifier": "com.wandergame.sbox",
66
"build": {
77
"frontendDist": "../dist",

packages/tools-core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "@sbox/tools-core",
3-
"version": "0.0.1",
43
"private": true,
54
"type": "module",
65
"main": "src/index.ts",

packages/web/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "@sbox/web",
3-
"version": "0.0.1",
43
"private": true,
54
"type": "module",
65
"scripts": {

scripts/release.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ function changelogHasVersion(file, version) {
6363
function main() {
6464
const arg = process.argv[2];
6565
const root = path.resolve(__dirname, '..');
66-
// 版本以桌面应用包为准(tauri.conf.json 的 version 指向 packages/app/package.json)
67-
const pkgRel = `packages/app/${PKG_JSON}`;
68-
const pkgPath = path.join(root, 'packages', 'app', PKG_JSON);
66+
// 版本以根目录 package.json 为准(tauri.conf.json 的 version 指向 ../../../package.json)
67+
const pkgRel = PKG_JSON;
68+
const pkgPath = path.join(root, PKG_JSON);
6969
const pkg = readJson(pkgPath);
7070

7171
const currentVersion = pkg.version;

0 commit comments

Comments
 (0)