5 Commits

Author SHA1 Message Date
5468e5ab59 Bumped ci node
All checks were successful
continuous-integration/drone Build is passing
2023-04-15 19:07:24 +02:00
48da695413 🚀New package version 1.0.0 [CI SKIP] 2023-04-15 17:05:00 +00:00
a648277dae Merge branch 'main' of https://git.odit.services/lfk/scanclient-electron
All checks were successful
continuous-integration/drone Build is passing
2023-03-27 18:27:49 +02:00
cb6a84568e improved msi building + branding 2023-03-27 18:26:07 +02:00
cdaa3edfa6 Basic readme update 2023-03-27 18:21:27 +02:00
4 changed files with 28 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ name: build:tag
steps: steps:
- name: run electron packager - name: run electron packager
depends_on: ["clone"] depends_on: ["clone"]
image: node:15.11.0-alpine3.13 image: registry.odit.services/hub/library/node:19.9.0-alpine3.16
commands: commands:
- apk add git zip -f - apk add git zip -f
- yarn - yarn
@@ -68,7 +68,7 @@ name: prepare:tag
steps: steps:
- name: bump package version - name: bump package version
image: node:alpine image: registry.odit.services/hub/library/node:19.9.0-alpine3.16
commands: commands:
- npm --no-git-tag-version version ${SOURCE_TAG} - npm --no-git-tag-version version ${SOURCE_TAG}
- name: push new version to repo - name: push new version to repo

View File

@@ -1,3 +1,19 @@
# scanclient-electron # scanclient-electron
electron packaged scanclient electron packaged scanclient
## Package
> Automagicly discovers your os and selects the right packager
```
pnpm i
pnpm build
```
## Bundle as MSI
> You need to install the [WiX MSI Buildtools](https://wixtoolset.org/docs/wix3/) first
```
pnpm i
pnpm build:msi
```

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

View File

@@ -1,14 +1,13 @@
{ {
"name": "@lfk/scanclient-electron", "name": "@lfk/scanclient-electron",
"version": "0.2.0", "version": "1.0.0",
"description": "minimal electron application", "description": "minimal electron application",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"download": "node download.js", "download": "node download.js",
"build:msi": "yarn download && electron-forge make", "build:msi": "node download.js && electron-forge make",
"build": "yarn download && yarn electron:package", "build": "yarn download && yarn electron-forge package",
"electron:start": "electron-forge start", "electron:start": "electron-forge start"
"electron:package": "electron-forge package"
}, },
"devDependencies": { "devDependencies": {
"@electron-forge/cli": "^6.0.0-beta.54", "@electron-forge/cli": "^6.0.0-beta.54",
@@ -44,8 +43,10 @@
{ {
"name": "@electron-forge/maker-wix", "name": "@electron-forge/maker-wix",
"config": { "config": {
"language": 1033, "manufacturer": "ODIT.Services",
"manufacturer": "My Awesome Company" "shortname": "LfKScan",
"name": "LfKScan",
"icon": "./favicon.ico"
} }
}, },
{ {
@@ -59,4 +60,4 @@
] ]
} }
} }
} }