Skip to content

Commit

Permalink
🚧 new version
Browse files Browse the repository at this point in the history
  • Loading branch information
NespoliBT committed Jan 22, 2021
1 parent b44eb13 commit b793917
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GH_TOKEN = 382b5b42e06e489b0956022cdc5f30e4ebbb9e3f
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ function createWindow() {
nodeIntegration: true,
},
});

console.log(`file://${__dirname}/dist/index.html`);
// Load index.html
win.loadFile("./dist/index.html");
win.loadFile(`${__dirname}/dist/index.html`);
}

app.on("ready", () => {
Expand All @@ -31,6 +31,7 @@ app.on("ready", () => {
});

autoUpdater.on("checking-for-update", () => {
console.log("prova");
dispatch("Checking for update...");
});

Expand Down
25 changes: 22 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "boilerbt",
"version": "0.1.0",
"version": "v0.1.1",
"main": "main.js",
"scripts": {
"start": "electron .",
"watch": "webpack --watch",
"build": "electron-packager .",
"build:src": "webpack"
"pack": "electron-builder --dir",
"dist": "electron-builder -l AppImage",
"postinstall": "electron-builder install-app-deps",
"release": "electron-builder -p onTag",
"build": "webpack"
},
"devDependencies": {
"@types/node": "^14.14.22",
Expand All @@ -32,5 +35,21 @@
"electron-updater": "^4.0.4",
"express": "^4.17.1",
"sqlite3": "^5.0.0"
},
"build": {
"directories": {
"output": "release/"
},
"appId": "projectsbt.nespolibt",
"linux": {
"target": "AppImage"
},
"publish": [
"github"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/NespoliBT/ProjectsBT.git"
}
}
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
devtool: "inline-source-map",
mode: "production",
target: "electron-renderer",

module: {
rules: [
{
Expand Down

0 comments on commit b793917

Please sign in to comment.