chore(package): add Linux and Windows distribution scripts and update artifact naming convention for builds
This commit is contained in:
@@ -138,17 +138,13 @@ tasks:
|
|||||||
desc: Build Linux Electron app with prebuilt backend
|
desc: Build Linux Electron app with prebuilt backend
|
||||||
deps: [build-frontend]
|
deps: [build-frontend]
|
||||||
cmds:
|
cmds:
|
||||||
- "{{.NPM}} run electron-postinstall"
|
- "{{.NPM}} run dist:linux"
|
||||||
- "{{.NPM}} run build-backend"
|
|
||||||
- "{{.NPM}} run dist -- --linux AppImage deb"
|
|
||||||
|
|
||||||
build-electron-windows:
|
build-electron-windows:
|
||||||
desc: Build Windows Electron apps (portable and installer)
|
desc: Build Windows Electron apps (portable and installer)
|
||||||
deps: [build-frontend]
|
deps: [build-frontend]
|
||||||
cmds:
|
cmds:
|
||||||
- "{{.NPM}} run electron-postinstall"
|
- "{{.NPM}} run dist:windows"
|
||||||
- "{{.NPM}} run build-backend"
|
|
||||||
- "{{.NPM}} run dist -- --win portable nsis"
|
|
||||||
|
|
||||||
build-electron-all:
|
build-electron-all:
|
||||||
desc: Build all Electron apps (Linux and Windows)
|
desc: Build all Electron apps (Linux and Windows)
|
||||||
|
|||||||
10
package.json
10
package.json
@@ -17,6 +17,8 @@
|
|||||||
"electron-postinstall": "electron-builder install-app-deps",
|
"electron-postinstall": "electron-builder install-app-deps",
|
||||||
"electron": "pnpm run electron-postinstall && pnpm run build && electron .",
|
"electron": "pnpm run electron-postinstall && pnpm run build && electron .",
|
||||||
"dist": "pnpm run electron-postinstall && pnpm run build && electron-builder --publish=never",
|
"dist": "pnpm run electron-postinstall && pnpm run build && electron-builder --publish=never",
|
||||||
|
"dist:linux": "pnpm run electron-postinstall && pnpm run build && electron-builder --linux AppImage deb --publish=never",
|
||||||
|
"dist:windows": "pnpm run electron-postinstall && pnpm run build && electron-builder --win portable nsis --publish=never",
|
||||||
"dist-prebuilt": "pnpm run electron-postinstall && pnpm run build-backend && electron-builder --publish=never",
|
"dist-prebuilt": "pnpm run electron-postinstall && pnpm run build-backend && electron-builder --publish=never",
|
||||||
"dist:mac-arm64": "pnpm run electron-postinstall && pnpm run build && electron-builder --mac --arm64 --publish=never",
|
"dist:mac-arm64": "pnpm run electron-postinstall && pnpm run build && electron-builder --mac --arm64 --publish=never",
|
||||||
"dist:mac-universal": "pnpm run electron-postinstall && pnpm run build && electron-builder --mac --universal --publish=never"
|
"dist:mac-universal": "pnpm run electron-postinstall && pnpm run build && electron-builder --mac --universal --publish=never"
|
||||||
@@ -62,7 +64,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"identity": null,
|
"identity": null,
|
||||||
"artifactName": "ReticulumMeshChat-v${version}-mac-${arch}.${ext}",
|
"artifactName": "ReticulumMeshChatX-v${version}-mac-${arch}.${ext}",
|
||||||
"x64ArchFiles": "Contents/Resources/app/electron/build/exe/**",
|
"x64ArchFiles": "Contents/Resources/app/electron/build/exe/**",
|
||||||
"extendInfo": {
|
"extendInfo": {
|
||||||
"NSMicrophoneUsageDescription": "Microphone access is only needed for Audio Calls",
|
"NSMicrophoneUsageDescription": "Microphone access is only needed for Audio Calls",
|
||||||
@@ -99,7 +101,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"artifactName": "ReticulumMeshChat-v${version}-${os}.${ext}",
|
"artifactName": "ReticulumMeshChatX-v${version}-${os}.${ext}",
|
||||||
"target": [
|
"target": [
|
||||||
"AppImage",
|
"AppImage",
|
||||||
"deb"
|
"deb"
|
||||||
@@ -120,10 +122,10 @@
|
|||||||
"writeUpdateInfo": false
|
"writeUpdateInfo": false
|
||||||
},
|
},
|
||||||
"portable": {
|
"portable": {
|
||||||
"artifactName": "ReticulumMeshChat-v${version}-${os}-portable.${ext}"
|
"artifactName": "ReticulumMeshChatX-v${version}-${os}-portable.${ext}"
|
||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"artifactName": "ReticulumMeshChat-v${version}-${os}-installer.${ext}",
|
"artifactName": "ReticulumMeshChatX-v${version}-${os}-installer.${ext}",
|
||||||
"oneClick": false,
|
"oneClick": false,
|
||||||
"allowToChangeInstallationDirectory": true
|
"allowToChangeInstallationDirectory": true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user