Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 11, 2024
1 parent 106727f commit 9031851
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 3 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MIT
2 changes: 1 addition & 1 deletion electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"!**/*.ts",
"!*.map",
"!package.json",
"!package-lock.json",
"!package-lock.json"
{
"from": "../dist",
"filter": ["**/*"]
Expand Down
209 changes: 209 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
21 changes: 21 additions & 0 deletions scripts/installer.js
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();

0 comments on commit 9031851

Please sign in to comment.