diff --git a/ui/desktop/forge.config.ts b/ui/desktop/forge.config.ts index bf00c6421b..efaa79e3b0 100644 --- a/ui/desktop/forge.config.ts +++ b/ui/desktop/forge.config.ts @@ -34,12 +34,6 @@ let cfg = { appleIdPassword: process.env['APPLE_ID_PASSWORD'], teamId: process.env['APPLE_TEAM_ID'] }, - protocols: [ - { - name: "GooseProtocol", // The macOS CFBundleURLName - schemes: ["goose"] // The macOS CFBundleURLSchemes array - } - ] } if (process.env['APPLE_ID'] === undefined) { @@ -55,19 +49,25 @@ module.exports = { name: '@electron-forge/maker-zip', platforms: ['darwin', 'win32'], config: { - arch: process.env.ELECTRON_ARCH === 'x64' ? ['x64'] : ['arm64'], - options: { - icon: 'src/images/icon.ico' + arch: process.env.ELECTRON_ARCH === 'x64' ? ['x64'] : ['arm64'], + options: { + icon: 'src/images/icon.ico' } } }, { name: '@electron-forge/maker-deb', - config: {}, + config: { + name: 'Goose', + bin: 'Goose' + }, }, { name: '@electron-forge/maker-rpm', - config: {}, + config: { + name: 'Goose', + bin: 'Goose' + }, }, ], plugins: [ diff --git a/ui/desktop/package.json b/ui/desktop/package.json index 01f2afaf89..427ec2c926 100644 --- a/ui/desktop/package.json +++ b/ui/desktop/package.json @@ -15,7 +15,7 @@ "start:test-error": "GOOSE_TEST_ERROR=true electron-forge start", "package": "electron-forge package", "make": "electron-forge make", - "bundle:default": "npm run make && cd out/Goose-darwin-arm64 && ditto -c -k --sequesterRsrc --keepParent Goose.app Goose.zip", + "bundle:default": "npm run make && (cd out/Goose-darwin-arm64 && ditto -c -k --sequesterRsrc --keepParent Goose.app Goose.zip) || echo 'out/Goose-darwin-arm64 not found; either the binary is not built or you are not on macOS'", "bundle:windows": "node scripts/build-main.js && node scripts/prepare-platform.js && npm run make -- --platform=win32 --arch=x64 && node scripts/copy-windows-dlls.js", "bundle:intel": "npm run make -- --arch=x64 && cd out/Goose-darwin-x64 && ditto -c -k --sequesterRsrc --keepParent Goose.app Goose_intel_mac.zip", "debug": "echo 'run --remote-debugging-port=8315' && lldb out/Goose-darwin-arm64/Goose.app",