electron-userland/electron-builder issue 7050

This commit is contained in:
cutls 2022-10-10 23:44:27 +09:00
parent a4f7f8dfd8
commit 8fcead947d
3 changed files with 10 additions and 8 deletions

View File

@ -28,7 +28,7 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: cd app && yarn - run: cd app && yarn
- run: cd app && yarn build:all - run: cd app && yarn build --skipX64 --withArm64
- name: Deploy to S3 - name: Deploy to S3
env: env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

View File

@ -174,11 +174,13 @@ async function cmd(options) {
if (platform === 'darwin' && !isTrue(options, 'skipMacOS')) { if (platform === 'darwin' && !isTrue(options, 'skipMacOS')) {
if (isTrue(options, 'unnotarize')) delete config.afterSign if (isTrue(options, 'unnotarize')) delete config.afterSign
if (arch === 'x64') { if (arch === 'x64') {
await build(Platform.MAC, Arch.x64, config) if (!isTrue(options, 'skipX64')) {
fs.renameSync( await build(Platform.MAC, Arch.x64, config)
`../build/TheDesk-${version}.dmg`, fs.renameSync(
`../build/TheDesk-${version}-x64.dmg` `../build/TheDesk-${version}.dmg`,
) `../build/TheDesk-${version}-x64.dmg`
)
}
if (isTrue(options, 'withArm64')) { if (isTrue(options, 'withArm64')) {
await build(Platform.MAC, Arch.arm64, config) await build(Platform.MAC, Arch.arm64, config)
fs.renameSync( fs.renameSync(
@ -198,7 +200,7 @@ async function cmd(options) {
`../build/TheDesk-${version}.dmg`, `../build/TheDesk-${version}.dmg`,
`../build/TheDesk-${version}-arm64.dmg` `../build/TheDesk-${version}-arm64.dmg`
) )
if (isTrue(options, 'skipX64')) await build(Platform.MAC, Arch.x64, config) if (!isTrue(options, 'skipX64')) await build(Platform.MAC, Arch.x64, config)
} }
} }

View File

@ -79,7 +79,7 @@
"browserify": "^17.0.0", "browserify": "^17.0.0",
"chokidar": "^3.5.2", "chokidar": "^3.5.2",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"electron": "^21.1.0", "electron": "^19.0.11",
"electron-builder": "^23.2.0", "electron-builder": "^23.2.0",
"electron-notarize": "^1.2.1", "electron-notarize": "^1.2.1",
"electron-rebuild": "^3.2.9", "electron-rebuild": "^3.2.9",