Compare commits
19 Commits
Author | SHA1 | Date |
---|---|---|
Nicolai Ort | b5fab1489a | |
Nicolai Ort | 7e75c4e9d8 | |
Philipp Dormann | 17286551ad | |
Philipp Dormann | 174931f154 | |
Philipp Dormann | 1108c2be76 | |
Nicolai Ort | 2cadf66da7 | |
Nicolai Ort | 5468e5ab59 | |
Philipp Dormann | 48da695413 | |
Philipp Dormann | a648277dae | |
Philipp Dormann | cb6a84568e | |
Nicolai Ort | cdaa3edfa6 | |
Philipp Dormann | de0e26e9ae | |
Philipp Dormann | 671409c6af | |
Nicolai Ort | b8cd7f01aa | |
Nicolai Ort | e813dd0320 | |
Nicolai Ort | 18f0fb1472 | |
Nicolai Ort | 6d5813baa9 | |
Nicolai Ort | 165e36a166 | |
Nicolai Ort | d6b4a1776c |
82
.drone.yml
82
.drone.yml
|
@ -1,82 +0,0 @@
|
||||||
---
|
|
||||||
kind: secret
|
|
||||||
name: gitea_token
|
|
||||||
get:
|
|
||||||
path: odit-git-bot
|
|
||||||
name: apikey
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: secret
|
|
||||||
name: git_ssh
|
|
||||||
get:
|
|
||||||
path: odit-git-bot
|
|
||||||
name: sshkey
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: build:tag
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: run electron packager
|
|
||||||
depends_on: ["clone"]
|
|
||||||
image: node:15.11.0-alpine3.13
|
|
||||||
commands:
|
|
||||||
- apk add git zip -f
|
|
||||||
- yarn
|
|
||||||
- yarn build
|
|
||||||
- mkdir dist
|
|
||||||
- zip -r dist/@lfk-scanclient-electron-linux-x64.zip out/@lfk-scanclient-electron-linux-x64
|
|
||||||
- name: gitea_release
|
|
||||||
depends_on: ["run electron packager"]
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
title: Release ${DRONE_TAG}
|
|
||||||
api_key:
|
|
||||||
from_secret: gitea_token
|
|
||||||
base_url: https://git.odit.services
|
|
||||||
files: dist/*
|
|
||||||
checksum:
|
|
||||||
- md5
|
|
||||||
- sha1
|
|
||||||
- sha256
|
|
||||||
- sha512
|
|
||||||
- adler32
|
|
||||||
- crc32
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: prepare:tag
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: bump package version
|
|
||||||
image: node:alpine
|
|
||||||
commands:
|
|
||||||
- npm --no-git-tag-version version ${SOURCE_TAG}
|
|
||||||
- name: commit & tag
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git add .
|
|
||||||
- git commit -m "🚀New package version ${SOURCE_TAG} [CI SKIP]"
|
|
||||||
- git tag ${SOURCE_TAG} -a -m "Release ${SOURCE_TAG}"
|
|
||||||
- name: push to repo
|
|
||||||
image: appleboy/drone-git-push
|
|
||||||
settings:
|
|
||||||
commit: false
|
|
||||||
author_email: bot@odit.services
|
|
||||||
followtags: true
|
|
||||||
remote: git@git.odit.services:lfk/scanclient-electron.git
|
|
||||||
skip_verify: true
|
|
||||||
ssh_key:
|
|
||||||
from_secret: git_ssh
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- push
|
|
||||||
- tag
|
|
||||||
include:
|
|
||||||
- custom
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
steps:
|
||||||
|
- name: bump package version
|
||||||
|
image: registry.odit.services/hub/library/node:19.9.0-alpine3.16
|
||||||
|
commands:
|
||||||
|
- npm --no-git-tag-version version ${SOURCE_TAG}
|
||||||
|
- name: push new version to repo
|
||||||
|
image: appleboy/drone-git-push
|
||||||
|
settings:
|
||||||
|
commit: true
|
||||||
|
commit_message: 🚀New package version ${SOURCE_TAG} [CI SKIP]
|
||||||
|
author_email: bot@odit.services
|
||||||
|
followtags: false
|
||||||
|
branch: main
|
||||||
|
remote: git@git.odit.services:lfk/scanclient-electron.git
|
||||||
|
skip_verify: true
|
||||||
|
ssh_key:
|
||||||
|
from_secret: odit-git-bot-sshkey
|
||||||
|
- name: tag
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git tag ${SOURCE_TAG} -a -m "Release ${SOURCE_TAG}"
|
||||||
|
environment:
|
||||||
|
SOURCE_TAG: "${SOURCE_TAG}"
|
||||||
|
- name: push to repo
|
||||||
|
image: appleboy/drone-git-push
|
||||||
|
settings:
|
||||||
|
commit: false
|
||||||
|
author_email: bot@odit.services
|
||||||
|
followtags: true
|
||||||
|
branch: main
|
||||||
|
remote: git@git.odit.services:lfk/scanclient-electron.git
|
||||||
|
skip_verify: true
|
||||||
|
ssh_key:
|
||||||
|
from_secret: odit-git-bot-sshkey
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- manual
|
|
@ -0,0 +1,37 @@
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build dist zip
|
||||||
|
image: registry.odit.services/hub/library/node:19.9.0-alpine3.16
|
||||||
|
commands:
|
||||||
|
- apk add git zip -f
|
||||||
|
- yarn
|
||||||
|
- yarn build
|
||||||
|
- mkdir dist
|
||||||
|
- zip -r dist/@lfk-scanclient-electron-linux-x64.zip out/@lfk-scanclient-electron-linux-x64
|
||||||
|
- name: gitea add packages to build
|
||||||
|
image: woodpeckerci/plugin-gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: odit-git-bot-apikey
|
||||||
|
base_url: https://git.odit.services
|
||||||
|
files: dist/*
|
||||||
|
title: Release ${CI_COMMIT_TAG}
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha1
|
||||||
|
- sha256
|
||||||
|
- sha512
|
||||||
|
- adler32
|
||||||
|
- crc32
|
||||||
|
- name: trigger app.gutfeel.de build
|
||||||
|
image: woodpeckerci/plugin-trigger
|
||||||
|
settings:
|
||||||
|
repositories:
|
||||||
|
- lfk/scanclient-live
|
||||||
|
params:
|
||||||
|
- "SOURCE_TAG=${CI_COMMIT_TAG}"
|
||||||
|
token:
|
||||||
|
from_secret: odit-ci-bot-apikey
|
||||||
|
when:
|
||||||
|
event: tag
|
18
README.md
18
README.md
|
@ -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
|
||||||
|
```
|
Binary file not shown.
After Width: | Height: | Size: 112 KiB |
22
package.json
22
package.json
|
@ -1,19 +1,20 @@
|
||||||
{
|
{
|
||||||
"name": "@lfk/scanclient-electron",
|
"name": "@lfk/scanclient-electron",
|
||||||
"version": "0.0.5",
|
"version": "1.0.3",
|
||||||
"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": "yarn download && yarn electron:package",
|
"build:msi": "node download.js && electron-forge make",
|
||||||
"electron:start": "electron-forge start",
|
"build": "yarn download && yarn electron-forge package",
|
||||||
"electron:package": "electron-forge package"
|
"electron:start": "electron-forge start"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@electron-forge/cli": "^6.0.0-beta.54",
|
"@electron-forge/cli": "^6.0.0-beta.54",
|
||||||
"@electron-forge/maker-deb": "^6.0.0-beta.54",
|
"@electron-forge/maker-deb": "^6.0.0-beta.54",
|
||||||
"@electron-forge/maker-rpm": "^6.0.0-beta.54",
|
"@electron-forge/maker-rpm": "^6.0.0-beta.54",
|
||||||
"@electron-forge/maker-squirrel": "^6.0.0-beta.54",
|
"@electron-forge/maker-squirrel": "^6.0.0-beta.54",
|
||||||
|
"@electron-forge/maker-wix": "^6.0.5",
|
||||||
"@electron-forge/maker-zip": "^6.0.0-beta.54",
|
"@electron-forge/maker-zip": "^6.0.0-beta.54",
|
||||||
"@taraus-he/tdunzip": "^1.0.4",
|
"@taraus-he/tdunzip": "^1.0.4",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
|
@ -28,7 +29,9 @@
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"forge": {
|
"forge": {
|
||||||
"packagerConfig": {},
|
"packagerConfig": {
|
||||||
|
"icon": "./favicon.ico"
|
||||||
|
},
|
||||||
"makers": [
|
"makers": [
|
||||||
{
|
{
|
||||||
"name": "@electron-forge/maker-zip",
|
"name": "@electron-forge/maker-zip",
|
||||||
|
@ -39,6 +42,15 @@
|
||||||
"name": "lfk__scanclient"
|
"name": "lfk__scanclient"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "@electron-forge/maker-wix",
|
||||||
|
"config": {
|
||||||
|
"manufacturer": "ODIT.Services",
|
||||||
|
"shortname": "LfKScan",
|
||||||
|
"name": "LfKScan",
|
||||||
|
"icon": "./favicon.ico"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "@electron-forge/maker-deb",
|
"name": "@electron-forge/maker-deb",
|
||||||
"config": {}
|
"config": {}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue