Skip to content

Commit

Permalink
feat: build executables
Browse files Browse the repository at this point in the history
  • Loading branch information
MrL0co committed Oct 13, 2022
1 parent 0f57e26 commit 780edba
Show file tree
Hide file tree
Showing 5 changed files with 3,232 additions and 120 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,5 @@ GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
/.vs/config/applicationhost.config

out/
2 changes: 1 addition & 1 deletion ZplPrinter/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</head>

<body>
<div class="panel panel-primary" style="height: 100%; width: 100%">
<div class="panel panel-primary" style="height: 100%; width: 100%;margin-bottom: 0;">
<div id="panel-head" class="panel-heading" style="-webkit-app-region: drag;">
<img src="icons/Icon-16-white.png"><span style="margin-left: 10px;">Zpl Printer</span>
<button id="btn-close" type="button" class="close" style="-webkit-app-region: no-drag;"><span>&times;</span></button>
Expand Down
8 changes: 6 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
const { app, BrowserWindow } = require('electron')

if (require('electron-squirrel-startup')) return app.quit();

const createWindow = () => {
const win = new BrowserWindow({
width: 800,
height: 600,
width: 535,
height: 768,
frame: false,
resizable: false,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
Expand Down
43 changes: 42 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "electron ."
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make"
},
"repository": {
"type": "git",
Expand All @@ -18,11 +20,50 @@
},
"homepage": "https://github.com/MrL0co/ZplPrinter#readme",
"devDependencies": {
"@electron-forge/cli": "^6.0.0-beta.67",
"@electron-forge/maker-deb": "^6.0.0-beta.67",
"@electron-forge/maker-rpm": "^6.0.0-beta.67",
"@electron-forge/maker-squirrel": "^6.0.0-beta.67",
"@electron-forge/maker-zip": "^6.0.0-beta.67",
"@rabbitholesyndrome/electron-forge-maker-portable": "^0.1.1",
"electron": "^21.1.0"
},
"dependencies": {
"bootstrap": "3.3.1",
"electron-squirrel-startup": "^1.0.0",
"electron-store": "^8.1.0",
"jquery": "^3.6.1"
},
"config": {
"forge": {
"packagerConfig": {},
"makers": [
{
"name": "@rabbitholesyndrome/electron-forge-maker-portable",
"config": {}
},
{
"name": "@electron-forge/maker-squirrel",
"config": {
"name": "zplprinter"
}
},
{
"name": "@electron-forge/maker-zip",
"platforms": [
"darwin",
"linux"
]
},
{
"name": "@electron-forge/maker-deb",
"config": {}
},
{
"name": "@electron-forge/maker-rpm",
"config": {}
}
]
}
}
}
Loading

0 comments on commit 780edba

Please sign in to comment.