Skip to content

Commit

Permalink
Windows maker tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed Apr 24, 2024
1 parent 889a9f0 commit cbfb787
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
50 changes: 26 additions & 24 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,54 +12,56 @@ import { spawn } from "child_process";

const config: ForgeConfig = {
packagerConfig: {
name: 'TrackAudio',
name: "TrackAudio",
asar: true,
osxSign: {},
icon: "resources/AppIcon/AppIcon",
extraResource: [
"resources/AC_Bus_f32.wav",
"resources/Click_f32.wav",
"resources/Crackle_f32.wav",
"resources/HF_WhiteNoise_f32.wav"
"resources/HF_WhiteNoise_f32.wav",
],
},
rebuildConfig: {},
makers: [
{
"name": "@electron-forge/maker-squirrel",
"config": {

}
name: "@electron-forge/maker-squirrel",
config: {
iconUrl:
"https://raw.githubusercontent.com/pierr3/TrackAudio/main/resources/AppIcon/AppIcon.ico",
setupIcon: "resources/AppIcon/AppIcon.ico",
},
},
{
"name": "@electron-forge/maker-zip",
name: "@electron-forge/maker-zip",
config: {
platforms: ['win64']
}
platforms: ["win64"],
},
},
{
name: '@electron-forge/maker-dmg',
name: "@electron-forge/maker-dmg",
config: {
icon: "resources/AppIcon/AppIcon.icns",
additionalDMGOptions: {
"code-sign": {
"signing-identity": "Developer ID Application"
}
}
}
"signing-identity": "Developer ID Application",
},
},
},
},
{
"name": "@electron-forge/maker-deb",
"config": {
productName: 'TrackAudio',
icon: 'resources/AppIcon/AppIcon.tiff',
categories: ['Game'],
homepage: 'https://github.com/pierr3/TrackAudio/',
name: "@electron-forge/maker-deb",
config: {
productName: "TrackAudio",
icon: "resources/AppIcon/AppIcon.tiff",
categories: ["Game"],
homepage: "https://github.com/pierr3/TrackAudio/",
scripts: {
postinst: 'scripts/install_library_deb.sh'
}
}
}
postinst: "scripts/install_library_deb.sh",
},
},
},
],
plugins: [
new AutoUnpackNativesPlugin({}),
Expand Down
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ declare const MAIN_WINDOW_WEBPACK_ENTRY: string;
declare const MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY: string;

// Handle creating/removing shortcuts on Windows when installing/uninstalling.
if (require("electron-squirrel-startup")) {
app.quit();
}
if(require('electron-squirrel-startup')) app.quit();

let version = "";
let mainWindow: BrowserWindow = null;
Expand Down

0 comments on commit cbfb787

Please sign in to comment.