generated from maximegris/angular-electron
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
241 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MIT |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"author": "Kyle Kemp <[email protected]>", | ||
"description": "Modding tools for Land of the Rair.", | ||
"homepage": "https://rair.land", | ||
"version": "2.0.0", | ||
"version": "1.4.11", | ||
"main": "app/main.js", | ||
"private": true, | ||
"scripts": { | ||
|
@@ -20,10 +20,15 @@ | |
"electron:serve": "wait-on tcp:4200 && npm run electron:serve-tsc && electron . --serve", | ||
"electron:local": "npm run build:prod && electron .", | ||
"electron:build": "npm run build:prod && electron-builder build --publish=never", | ||
"electron:build:setup": "npm run electron:build && npm run electron:setup", | ||
"electron:setup": "node scripts/installer", | ||
"test": "ng test --watch=false", | ||
"test:watch": "ng test", | ||
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md", | ||
"lint": "ng lint" | ||
"lint": "ng lint", | ||
"bump:patch": "npm-bump patch", | ||
"bump:minor": "npm-bump minor", | ||
"bump:major": "npm-bump major" | ||
}, | ||
"dependencies": { | ||
"@angular/common": "18.1.3", | ||
|
@@ -81,11 +86,13 @@ | |
"electron-builder": "24.13.3", | ||
"electron-debug": "3.2.0", | ||
"electron-reloader": "1.2.3", | ||
"electron-winstaller": "5.4.0", | ||
"eslint": "8.57.0", | ||
"eslint-plugin-import": "2.29.1", | ||
"eslint-plugin-jsdoc": "48.2.3", | ||
"eslint-plugin-prefer-arrow": "1.2.3", | ||
"node-polyfill-webpack-plugin": "2.0.1", | ||
"npm-bump": "0.0.33", | ||
"npm-run-all": "4.1.5", | ||
"postcss": "8.4.40", | ||
"tailwindcss": "3.4.7", | ||
|
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,21 @@ | ||
const electronInstaller = require("electron-winstaller"); | ||
const fs = require("fs"); | ||
|
||
const generate = async () => { | ||
fs.copyFileSync("./LICENSE", "release/win-unpacked/LICENSE"); | ||
|
||
try { | ||
await electronInstaller.createWindowsInstaller({ | ||
appDirectory: "./release/win-unpacked", | ||
outputDirectory: "./release/win-installer", | ||
authors: "Land of the Rair", | ||
exe: "Land of the Rair ModKit.exe", | ||
version: "1.0.0", | ||
}); | ||
console.log("Success!"); | ||
} catch (e) { | ||
console.log(`No dice: ${e.message}`); | ||
} | ||
}; | ||
|
||
generate(); |