Skip to content

Commit

Permalink
Migrate from electron-builder to electron-packager
Browse files Browse the repository at this point in the history
  • Loading branch information
johnholbrook committed Sep 15, 2021
1 parent 90385f5 commit 793c383
Show file tree
Hide file tree
Showing 15 changed files with 1,387 additions and 2,657 deletions.
21 changes: 21 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const packager = require('electron-packager')

async function bundleElectronApp(options) {
const appPaths = await packager(options)
console.log(`Electron app bundles created:\n${appPaths.join("\n")}`)
}

let options = {
dir: ".",
out: "./dist",
overwrite: true,
platform: ["darwin", "win32"],
arch: ["x64", "arm64"],
appBundleId: "com.fll-timer.scrollable",
appCopyright: `Copyright © 2020-${new Date().getFullYear()} John Holbrook`,
icon: "./build/app-icon.png",
asar: false
}


bundleElectronApp(options);
Binary file added build/app-icon.icns
Binary file not shown.
Binary file added build/app-icon.ico
Binary file not shown.
Binary file added build/app-icon.iconset/icon_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/app-icon.iconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/app-icon.iconset/icon_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/app-icon.iconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/app-icon.iconset/icon_256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added build/app-icon.iconset/icon_32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/app-icon.iconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/app-icon.iconset/icon_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4,019 changes: 1,364 additions & 2,655 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "main.js",
"scripts": {
"start": "electron .",
"dist": "electron-builder"
"dist": "node build.js"
},
"dependencies": {
"bootstrap": "^5.0.0-beta1",
Expand All @@ -18,7 +18,7 @@
},
"devDependencies": {
"electron": "^11.1.0",
"electron-builder": "^22.9.1"
"electron-packager": "^15.4.0"
},
"build": {
"appId": "com.fll-timer.scrollable",
Expand Down

0 comments on commit 793c383

Please sign in to comment.