Skip to content

Commit

Permalink
fix(ci): use appImage, slim down builder configs
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Oct 14, 2024
1 parent 1586f2d commit 6bcff7f
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 36 deletions.
33 changes: 21 additions & 12 deletions apps/example-reducers/electron-builder.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"appId": "com.electron.app",
"productName": "zutron-example-reducers",
"directories": { "buildResources": "../../resources/build" },
"directories": {
"buildResources": "../../resources/build"
},
"files": [
"!**/.vscode/*",
"!src/*",
Expand All @@ -10,7 +12,10 @@
"!{.env,.env.*,.npmrc,pnpm-lock.yaml}",
"!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}"
],
"win": { "executableName": "zutron-example-reducers" },
"asar": true,
"win": {
"executableName": "zutron-example-reducers"
},
"nsis": {
"artifactName": "${name}-${version}-setup.${ext}",
"shortcutName": "${productName}",
Expand All @@ -19,17 +24,21 @@
},
"mac": {
"entitlementsInherit": "build/entitlements.mac.plist",
"extendInfo": [
{ "NSCameraUsageDescription": "Application requests access to the device's camera." },
{ "NSMicrophoneUsageDescription": "Application requests access to the device's microphone." },
{ "NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder." },
{ "NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder." }
],
"notarize": false
},
"dmg": { "artifactName": "${name}-${version}.${ext}" },
"linux": { "target": ["deb"], "maintainer": "electronjs.org", "category": "Utility" },
"appImage": { "artifactName": "${name}-${version}.${ext}" },
"dmg": {
"artifactName": "${name}-${version}.${ext}"
},
"linux": {
"target": ["AppImage"],
"category": "Utility"
},
"appImage": {
"artifactName": "${name}-${version}.${ext}"
},
"npmRebuild": false,
"publish": { "provider": "generic", "url": "https://example.com/auto-updates" }
"publish": {
"provider": "generic",
"url": "https://example.com/auto-updates"
}
}
33 changes: 21 additions & 12 deletions apps/example-separate-handlers/electron-builder.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"appId": "com.electron.app",
"productName": "zutron-example-separate-handlers",
"directories": { "buildResources": "../../resources/build" },
"directories": {
"buildResources": "../../resources/build"
},
"files": [
"!**/.vscode/*",
"!src/*",
Expand All @@ -10,7 +12,10 @@
"!{.env,.env.*,.npmrc,pnpm-lock.yaml}",
"!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}"
],
"win": { "executableName": "zutron-example-separate-handlers" },
"asar": true,
"win": {
"executableName": "zutron-example-separate-handlers"
},
"nsis": {
"artifactName": "${name}-${version}-setup.${ext}",
"shortcutName": "${productName}",
Expand All @@ -19,17 +24,21 @@
},
"mac": {
"entitlementsInherit": "build/entitlements.mac.plist",
"extendInfo": [
{ "NSCameraUsageDescription": "Application requests access to the device's camera." },
{ "NSMicrophoneUsageDescription": "Application requests access to the device's microphone." },
{ "NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder." },
{ "NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder." }
],
"notarize": false
},
"dmg": { "artifactName": "${name}-${version}.${ext}" },
"linux": { "target": ["deb"], "maintainer": "electronjs.org", "category": "Utility" },
"appImage": { "artifactName": "${name}-${version}.${ext}" },
"dmg": {
"artifactName": "${name}-${version}.${ext}"
},
"linux": {
"target": ["AppImage"],
"category": "Utility"
},
"appImage": {
"artifactName": "${name}-${version}.${ext}"
},
"npmRebuild": false,
"publish": { "provider": "generic", "url": "https://example.com/auto-updates" }
"publish": {
"provider": "generic",
"url": "https://example.com/auto-updates"
}
}
33 changes: 21 additions & 12 deletions apps/example-store-handlers/electron-builder.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"appId": "com.electron.app",
"productName": "zutron-example-store-handlers",
"directories": { "buildResources": "../../resources/build" },
"directories": {
"buildResources": "../../resources/build"
},
"files": [
"!**/.vscode/*",
"!src/*",
Expand All @@ -10,7 +12,10 @@
"!{.env,.env.*,.npmrc,pnpm-lock.yaml}",
"!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}"
],
"win": { "executableName": "zutron-example-store-handlers" },
"asar": true,
"win": {
"executableName": "zutron-example-store-handlers"
},
"nsis": {
"artifactName": "${name}-${version}-setup.${ext}",
"shortcutName": "${productName}",
Expand All @@ -19,17 +24,21 @@
},
"mac": {
"entitlementsInherit": "build/entitlements.mac.plist",
"extendInfo": [
{ "NSCameraUsageDescription": "Application requests access to the device's camera." },
{ "NSMicrophoneUsageDescription": "Application requests access to the device's microphone." },
{ "NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder." },
{ "NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder." }
],
"notarize": false
},
"dmg": { "artifactName": "${name}-${version}.${ext}" },
"linux": { "target": ["deb"], "maintainer": "electronjs.org", "category": "Utility" },
"appImage": { "artifactName": "${name}-${version}.${ext}" },
"dmg": {
"artifactName": "${name}-${version}.${ext}"
},
"linux": {
"target": ["AppImage"],
"category": "Utility"
},
"appImage": {
"artifactName": "${name}-${version}.${ext}"
},
"npmRebuild": false,
"publish": { "provider": "generic", "url": "https://example.com/auto-updates" }
"publish": {
"provider": "generic",
"url": "https://example.com/auto-updates"
}
}

0 comments on commit 6bcff7f

Please sign in to comment.