mirror of
				https://github.com/hydralauncher/hydra.git
				synced 2025-03-09 15:40:26 +00:00 
			
		
		
		
	build(linux): add .desktop config
This commit is contained in:
		
							parent
							
								
									62342ce53c
								
							
						
					
					
						commit
						07ea2cdf70
					
				
					 2 changed files with 23 additions and 8 deletions
				
			
		| 
						 | 
					@ -13,6 +13,16 @@ import { ElectronegativityPlugin } from "@electron-forge/plugin-electronegativit
 | 
				
			||||||
import { mainConfig } from "./webpack.main.config";
 | 
					import { mainConfig } from "./webpack.main.config";
 | 
				
			||||||
import { rendererConfig } from "./webpack.renderer.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 = {
 | 
					const config: ForgeConfig = {
 | 
				
			||||||
  packagerConfig: {
 | 
					  packagerConfig: {
 | 
				
			||||||
    asar: true,
 | 
					    asar: true,
 | 
				
			||||||
| 
						 | 
					@ -40,16 +50,10 @@ const config: ForgeConfig = {
 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
    new MakerZIP({}, ["darwin", "linux"]),
 | 
					    new MakerZIP({}, ["darwin", "linux"]),
 | 
				
			||||||
    new MakerRpm({
 | 
					    new MakerRpm({
 | 
				
			||||||
      options: {
 | 
					      options: linuxPkgConfig
 | 
				
			||||||
        mimeType: ["x-scheme-handler/hydralauncher"],
 | 
					 | 
				
			||||||
        bin: "./Hydra",
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
    new MakerDeb({
 | 
					    new MakerDeb({
 | 
				
			||||||
      options: {
 | 
					      options: linuxPkgConfig
 | 
				
			||||||
        mimeType: ["x-scheme-handler/hydralauncher"],
 | 
					 | 
				
			||||||
        bin: "./Hydra",
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  publishers: [
 | 
					  publishers: [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										11
									
								
								hydra-launcher.desktop
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								hydra-launcher.desktop
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -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
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue