diff --git a/forge.config.ts b/forge.config.ts index 3bc8bf23..21718764 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -13,6 +13,16 @@ import { ElectronegativityPlugin } from "@electron-forge/plugin-electronegativit import { mainConfig } from "./webpack.main.config"; import { rendererConfig } from "./webpack.renderer.config"; +const linuxPkgConfig = { + mimeType: ["x-scheme-handler/hydralauncher"], + bin: "./Hydra", + desktopTemplate: "./hydra-launcher.desktop", + icon: "images/icon.png", + genericName: "Games Launcher", + name: "hydra-launcher", + productName: "Hydra" +}; + const config: ForgeConfig = { packagerConfig: { asar: true, @@ -40,16 +50,10 @@ const config: ForgeConfig = { }), new MakerZIP({}, ["darwin", "linux"]), new MakerRpm({ - options: { - mimeType: ["x-scheme-handler/hydralauncher"], - bin: "./Hydra", - }, + options: linuxPkgConfig }), new MakerDeb({ - options: { - mimeType: ["x-scheme-handler/hydralauncher"], - bin: "./Hydra", - }, + options: linuxPkgConfig }), ], publishers: [ diff --git a/hydra-launcher.desktop b/hydra-launcher.desktop new file mode 100644 index 00000000..e9e10e91 --- /dev/null +++ b/hydra-launcher.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Hydra +Comment=No bullshit. Just play. +GenericName=Games Launcher +Exec=hydra-launcher %U +Icon=hydra-launcher +Type=Application +StartupNotify=true +Categories=GNOME;GTK;Utility; +MimeType=x-scheme-handler/hydralauncher; +StartupWMClass=Hydra