diff --git a/package.json b/package.json index e3a751ef..865c0392 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "@types/ws": "^8.2.2", "electron": "git+https://github.com/castlabs/electron-releases.git", "electron-builder": "^22.14.13", + "electron-builder-notarize-pkg": "^1.2.0", "electron-webpack": "^2.8.2", "musickit-typescript": "^1.2.4", "playwright": "^1.18.1", @@ -106,6 +107,7 @@ "appId": "cider", "afterPack": "./resources/afterPack.js", "afterSign": "./resources/notarize.js", + "afterAllArtifactBuild": "electron-builder-notarize-pkg", "protocols": [ { "name": "Cider", @@ -151,6 +153,17 @@ "license": "LICENSE", "deleteAppDataOnUninstall": true }, + "pkg": { + "allowAnywhere": true, + "allowRootDirectory" : true, + "license" : "LICENSE", + "overwriteAction": "upgrade", + "background" : { + "file": "./resources/bg.png", + "alignment": "bottomleft", + "scaling": "tofit" + } + }, "win": { "target": [ "nsis" @@ -170,7 +183,7 @@ "entitlementsInherit": "./resources/entitlements.mac.plist", "darkModeSupport": true, "target": [ - "dmg" + "pkg" ] } } diff --git a/resources/bg.png b/resources/bg.png new file mode 100644 index 00000000..049f0b16 Binary files /dev/null and b/resources/bg.png differ