Skip to content

Commit

Permalink
Merge branch 'main' into releases/terminalone/app
Browse files Browse the repository at this point in the history
  • Loading branch information
atinylittleshell committed Feb 17, 2024
2 parents 9e0b309 + 887f273 commit 79c6018
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 174 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ jobs:
run: npm cache clean -f
- name: install dependencies
run: npm ci
- name: build for mac
run: npm run publish:app:mac
- name: build for mac x64
run: npm run publish:app:mac:x64
- name: build for mac arm64
run: npm run publish:app:mac:arm64
build_on_linux:
runs-on: ubuntu-latest
env:
Expand Down
22 changes: 7 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,19 @@
"build:app:windows": "shx rm -rf dist && npm run build && electron-builder --win --publish=never",
"build:app:mac": "shx rm -rf dist && npm run build && electron-builder --mac --publish=never",
"build:app:linux": "shx rm -rf dist && npm run build && electron-builder --linux --publish=never",
"publish:app:windows": "shx rm -rf dist && npm run build && electron-builder --win --publish=always",
"publish:app:mac": "shx rm -rf dist && npm run build && electron-builder --mac --publish=always",
"publish:app:linux": "shx rm -rf dist && npm run build && electron-builder --linux --publish=always",
"publish:app:windows:x64": "shx rm -rf dist && npm run rebuild:node-pty:x64 && npm run build && electron-builder --win --x64 --publish=always",
"publish:app:mac:x64": "shx rm -rf dist && npm run rebuild:node-pty:x64 && npm run build && electron-builder --mac --x64 --publish=always",
"publish:app:mac:arm64": "shx rm -rf dist && npm run rebuild:node-pty:arm64 && npm run build && electron-builder --mac --arm64 --publish=always",
"publish:app:linux:x64": "shx rm -rf dist && npm run rebuild:node-pty:x64 && npm run build && electron-builder --linux --x64 --publish=always",
"release:app": "git checkout releases/terminalone/app && git pull && git merge --no-edit --no-ff main && git push && git checkout main",
"build": "turbo run build",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"test": "turbo run test",
"rebuild:node-pty": "electron-rebuild -f -o node-pty -m packages/app",
"prepare": "node -e \"process.env.NODE_ENV != 'production' && process.exit(1)\" || npm run v8-snapshot && electron-builder install-app-deps && npm run rebuild:node-pty",
"v8-snapshot": "cross-env npm_config_arch=x64 npm run v8-snapshot:arch && cross-env npm_config_arch=arm64 npm run v8-snapshot:arch",
"v8-snapshot:arch": "npm run mk-snapshot && npm run cp-snapshot",
"mk-snapshot": "cross-env ELECTRON_CUSTOM_VERSION=$npm_package_devDependencies_electron node node_modules/electron-mksnapshot/download-mksnapshot.js && node scripts/mk-snapshot.js",
"cp-snapshot": "node scripts/cp-snapshot.js"
"rebuild:node-pty:x64": "electron-rebuild -f --arch=x64 -o node-pty -m packages/app",
"rebuild:node-pty:arm64": "electron-rebuild -f --arch=arm64 -o node-pty -m packages/app",
"prepare": "node -e \"process.env.NODE_ENV != 'production' && process.exit(1)\" || electron-builder install-app-deps && npm run rebuild:node-pty"
},
"main": "packages/app/dist/main.bundle.js",
"build": {
Expand All @@ -65,13 +64,6 @@
"icon": "icon.icns"
},
"mac": {
"target": {
"target": "default",
"arch": [
"x64",
"arm64"
]
},
"category": "public.app-category.developer-tools",
"entitlements": "./scripts/entitlements.plist",
"entitlementsInherit": "./scripts/entitlements.plist",
Expand Down
69 changes: 0 additions & 69 deletions scripts/cp-snapshot.js

This file was deleted.

73 changes: 0 additions & 73 deletions scripts/mk-snapshot.js

This file was deleted.

15 changes: 0 additions & 15 deletions scripts/snapshot-libs.js

This file was deleted.

0 comments on commit 79c6018

Please sign in to comment.