Skip to content

Commit

Permalink
fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
xianfei committed Jul 4, 2024
1 parent f90e98d commit 204af74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions builddmgjsonarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function replacePath(obj, oldPath, newPath) {
}
}

console.log(config);

// 替换路径
replacePath(config, '/Users/xianfei/Documents/GitHub/SysMocap', currentDir);

Expand Down
2 changes: 2 additions & 0 deletions builddmgjsonx86.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ function replacePath(obj, oldPath, newPath) {
// 替换路径
replacePath(config, '/Users/xianfei/Documents/GitHub/SysMocap', currentDir);

console.log(config);

// 输出新的配置对象
const outputPath = path.join(currentDir, 'dmgcfg.json');
fs.writeFileSync(outputPath, JSON.stringify(config, null, 2), 'utf-8');
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"7z:win64": "7z a -t7z -mx=9 -y ./OutApp/packages/SysMocap-Windows-x64.7z ./OutApp/SysMocap-win32-x64/",
"7z:winarm": "7z a -t7z -mx=9 -y ./OutApp/packages/SysMocap-Windows-arm64.7z ./OutApp/SysMocap-win32-arm64/",
"dmgtool": "npm install -g appdmg",
"dmg": "node builddmgjsonx86.js && appdmg ./dmgcfg.json ./OutApp/packages/SysMocap-macOS-x64.dmg && rm ./dmgcfg.json",
"dmgarm": "node builddmgjsonarm.js && appdmg ./dmgcfg.json ./OutApp/packages/SysMocap-macOS-arm64.dmg && rm ./dmgcfg.json"
"dmg": "node builddmgjsonx86.js && cat dmgcfg.json && appdmg ./dmgcfg.json ./OutApp/packages/SysMocap-macOS-x64.dmg && rm ./dmgcfg.json",
"dmgarm": "node builddmgjsonarm.js && cat dmgcfg.json && appdmg ./dmgcfg.json ./OutApp/packages/SysMocap-macOS-arm64.dmg && rm ./dmgcfg.json"
},
"author": "xianfei",
"license": "ISC",
Expand Down

0 comments on commit 204af74

Please sign in to comment.