diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index b44f596..02b04fa 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -16,7 +16,7 @@ jobs: run: | sudo npm install --unsafe-perm=true --allow-root npm run build - electron-builder --linux -p never + npm run package-linux - name: Get app version id: package-version diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml index 86bdf47..d3d356c 100644 --- a/.github/workflows/release-main.yml +++ b/.github/workflows/release-main.yml @@ -2,8 +2,6 @@ name: CI/CD Release Main on: push: - branches: - - master tags: - 'v*' @@ -18,8 +16,7 @@ jobs: run: | npm install npm run build - electron-builder -w --x64 -p never - electron-builder -w --ia32 -p never + npm run package-win-ci - name: Get app version id: package-version diff --git a/package.json b/package.json index 6da5c0f..3a2326e 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,10 @@ "electron": "electron ./dist/electron.js", "start": "npm run build && npm run electron", "package-win": "electron-builder -w --x64 && electron-builder -w --ia32 && electron-builder -w appx:arm64", + "package-win-ci": "electron-builder -w --x64 -p never && electron-builder -w --ia32 -p never", "package-mac": "sudo electron-builder --mac", "package-mas": "sudo electron-builder --mac mas && sudo bash build/resignAndPackage.sh", - "package-linux": "electron-builder --linux" + "package-linux": "electron-builder --linux -p never" }, "keywords": [], "author": "Haoyuan Liu",