-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create distributables for Windows + Linux (#284)
* try getting forge working just for building * build with forge * use forge only for vite bundling * revert some small changes * update pipelines * set up auto-update * add preview command * update typecheck * fix packages * Simplify install process by not allowing users to change install directory * Update included files * Removed commented code * fix loading the app when packaged * prettier --------- Co-authored-by: Benoit Coudour <[email protected]>
- Loading branch information
1 parent
7881864
commit 30f7c5e
Showing
27 changed files
with
2,699 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ thumbs.db | |
/tsconfig.web.tsbuildinfo | ||
debug.log | ||
bun.lockb | ||
*.pfx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,8 @@ src/routes.ts | |
node_modules | ||
typed-router.d.ts | ||
vendor | ||
docs | ||
docs | ||
dist | ||
.vite | ||
out | ||
buildResources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { Configuration } from "electron-builder"; | ||
|
||
/** | ||
* @see https://www.electron.build/configuration | ||
*/ | ||
const config: Configuration = { | ||
appId: "BeyondAllReason", | ||
productName: "Beyond All Reason", | ||
files: [ | ||
"!**/.vscode/*", | ||
"!{docs,src,out,tests,vendor}/*", | ||
"!vite.*.config.{js,ts,mjs,cjs,mts}", | ||
"!{eslint.config.mjs,.prettierignore,prettier.config.mjs,README.md}", | ||
"!{.env,.env.*,.npmrc,pnpm-lock.yaml}", | ||
"!{tsconfig.json,tsconfig.*.json}", | ||
"!{electron-builder.config.ts,forge.config.cjs}", | ||
], | ||
directories: { buildResources: "buildResources" }, | ||
asarUnpack: ["resources/**"], | ||
|
||
publish: { provider: "github" }, | ||
fileAssociations: [ | ||
{ | ||
ext: "sdfz", | ||
description: "BAR Replay File", | ||
role: "Viewer", | ||
icon: "icon.ico", | ||
name: "SDFZ NAME HERE", | ||
}, | ||
], | ||
|
||
// Windows | ||
win: { | ||
target: ["nsis"], | ||
}, | ||
nsis: { | ||
artifactName: "${productName}-${version}-setup.${ext}", | ||
uninstallDisplayName: "${productName}", | ||
oneClick: true, | ||
perMachine: true, | ||
allowToChangeInstallationDirectory: false, | ||
}, | ||
|
||
// Linux | ||
linux: { | ||
target: ["AppImage"], | ||
category: "Game", | ||
}, | ||
appImage: {}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.