Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xianfei committed Jul 4, 2024
1 parent b967388 commit 30d3357
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
run: |
python3 -m pip install setuptools
npm install -g appdmg@0.6.6
sed -i '' '137,149d' `npm root -g`/appdmg/lib/appdmg.js
# step3: npm install
- name: npm install
Expand All @@ -67,6 +66,7 @@ jobs:
- name: build mac app
if: matrix.os == 'macos-14'
run: |
sed -i '' '137,149d' `npm root -g`/appdmg/lib/appdmg.js
npm run package:mac64
npm run dmg
npm run package:macarm
Expand Down
22 changes: 1 addition & 21 deletions dmgcfg.json
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
{
"title": "SysMocap-macOS-arm64",
"format": "ULMOT",
"contents": [
{
"x": 448,
"y": 344,
"type": "link",
"path": "/Applications"
},
{
"x": 192,
"y": 344,
"type": "file",
"path": "/Users/xianfei/Documents/GitHub/SysMocap/OutApp/SysMocap-darwin-arm64/SysMocap.app"
}
],
"background": "/Users/xianfei/Documents/GitHub/SysMocap/node_modules/electron-installer-dmg/resources/mac/background.png",
"icon": "/Users/xianfei/Documents/GitHub/SysMocap/icons/sysmocap.icns",
"icon-size": 80
}
{"title":"SysMocap-macOS-arm64","format":"ULMO","contents":[{"x":448,"y":344,"type":"link","path":"/Applications"},{"x":192,"y":344,"type":"file","path":"/Users/xianfei/Documents/GitHub/SysMocap/OutApp/SysMocap-darwin-arm64/SysMocap.app"}],"background":"/Users/xianfei/Documents/GitHub/SysMocap/node_modules/electron-installer-dmg/resources/mac/background.png","icon":"/Users/xianfei/Documents/GitHub/SysMocap/icons/sysmocap.icns","icon-size":80}
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 && 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"
"dmg": "node builddmgjsonx86.js && cat dmgcfg.json && node `npm root -g`/appdmg/bin/appdmg.js ./dmgcfg.json ./OutApp/packages/SysMocap-macOS-x64.dmg && rm ./dmgcfg.json",
"dmgarm": "node builddmgjsonarm.js && cat dmgcfg.json && node `npm root -g`/appdmg/bin/appdmg.js ./dmgcfg.json ./OutApp/packages/SysMocap-macOS-arm64.dmg && rm ./dmgcfg.json"
},
"author": "xianfei",
"license": "ISC",
Expand Down

0 comments on commit 30d3357

Please sign in to comment.