Compare commits

..

39 Commits
0.0.2 ... main

Author SHA1 Message Date
b5fab1489a
Added env
Some checks failed
ci/woodpecker/manual/prepare Pipeline failed
2023-11-06 20:43:46 +01:00
7e75c4e9d8
feat(ci)!: Switch to woodpecker
Some checks failed
ci/woodpecker/manual/prepare Pipeline failed
2023-11-06 20:40:59 +01:00
17286551ad 🚀New package version 1.0.3 [CI SKIP] 2023-04-15 17:24:01 +00:00
174931f154 🚀New package version 1.0.2 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing
2023-04-15 17:21:45 +00:00
1108c2be76
update packagerConfig for icon
All checks were successful
continuous-integration/drone Build is passing
2023-04-15 19:20:32 +02:00
2cadf66da7 🚀New package version 1.0.1 [CI SKIP] 2023-04-15 17:16:16 +00:00
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
de0e26e9ae MSI bundle 2023-03-27 18:11:35 +02:00
671409c6af pnpm migration 2023-03-27 18:10:36 +02:00
b8cd7f01aa Added missing secret 2021-04-14 18:21:06 +02:00
e813dd0320 🚀New package version 0.2.0 [CI SKIP] 2021-04-14 16:16:52 +00:00
18f0fb1472 Now automagicly triggering livesystem builds
All checks were successful
continuous-integration/drone Build is passing
2021-04-14 17:48:47 +02:00
6d5813baa9 🚀New package version 0.1.6 [CI SKIP] 2021-04-13 17:00:10 +00:00
165e36a166 Pinned branch to main
All checks were successful
continuous-integration/drone Build is passing
2021-04-13 18:59:32 +02:00
d6b4a1776c Workaround for git push issue
Some checks reported errors
continuous-integration/drone Build was killed
ref #1
2021-04-13 18:51:21 +02:00
bee8c9df96 Added release title
Some checks failed
continuous-integration/drone Build is failing
2021-04-07 19:15:57 +02:00
8189fd9c0e Added tag to ignore list 2021-04-07 19:15:40 +02:00
a18c5d5598 Back to appleboy for push
All checks were successful
continuous-integration/drone Build is passing
2021-04-07 19:12:15 +02:00
be482ff6f1 Added upstream
Some checks failed
continuous-integration/drone Build is failing
2021-04-07 18:48:21 +02:00
103f9eb436 Added manual push
Some checks failed
continuous-integration/drone Build is failing
2021-04-07 18:47:39 +02:00
6d5bcf2802 Removed pushes
All checks were successful
continuous-integration/drone Build is passing
2021-04-07 18:47:16 +02:00
4a419d2862 Revert "Pushing manually again"
This reverts commit b5553936b0854b9073aaa44afd5233d0784cb72b.
2021-04-07 18:46:46 +02:00
b5553936b0 Pushing manually again
ref #1
2021-04-07 18:44:21 +02:00
3f7d33af91 🚀New package version 0.0.5 [CI SKIP] 2021-04-07 16:35:09 +00:00
03a9810f48 Merge branch 'main' of git.odit.services:lfk/scanclient-electron into main
All checks were successful
continuous-integration/drone Build is passing
# Conflicts:
#	.drone.yml
2021-04-07 18:33:07 +02:00
fed8eb939b Now explicitly pushing tags
ref #1
2021-04-07 18:32:48 +02:00
d04bfe9faf 🚀New package version 0.0.4 [CI SKIP] 2021-04-07 16:30:47 +00:00
6fb5be4809 Now explicitly pushing tags
All checks were successful
continuous-integration/drone Build is passing
ref #1
2021-04-07 18:30:04 +02:00
c629bc673e 🚀New package version 0.0.3 [CI SKIP] 2021-04-07 16:25:50 +00:00
ba56e7ecaf Added sshkey secret
All checks were successful
continuous-integration/drone Build is passing
ref #1
2021-04-07 18:24:58 +02:00
8bec596290 Fixed remote name
Some checks failed
continuous-integration/drone Build is failing
ref #1
2021-04-07 18:23:19 +02:00
c15ecb6fb6 fixed typo
Some checks failed
continuous-integration/drone Build is failing
ref #1
2021-04-07 18:21:24 +02:00
0233961d6f Fixed typos / missing git commands
Some checks failed
continuous-integration/drone Build is failing
ref #1
2021-04-07 18:20:26 +02:00
582ab67098 Added api-triggered release ci
Some checks failed
continuous-integration/drone Build is failing
ref #1
2021-04-07 18:16:50 +02:00
72c46fdbb6 Renamed tag build in ci
ref #1
2021-04-07 18:16:34 +02:00
8 changed files with 3965 additions and 49 deletions

View File

@ -1,43 +0,0 @@
---
kind: secret
name: gitea_token
get:
path: odit-git-bot
name: apikey
---
kind: pipeline
type: kubernetes
name: build
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:
api_key:
from_secret: gitea_token
base_url: https://git.odit.services
files: dist/*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag
trigger:
event:
- tag

1
.npmrc Normal file
View File

@ -0,0 +1 @@
node-linker=hoisted

37
.woodpecker/prepare.yml Normal file
View File

@ -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

37
.woodpecker/release.yml Normal file
View File

@ -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

View File

@ -1,3 +1,19 @@
# 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,19 +1,20 @@
{
"name": "@lfk/scanclient-electron",
"version": "0.0.0",
"version": "1.0.3",
"description": "minimal electron application",
"main": "main.js",
"scripts": {
"download": "node download.js",
"build": "yarn download && yarn electron:package",
"electron:start": "electron-forge start",
"electron:package": "electron-forge package"
"build:msi": "node download.js && electron-forge make",
"build": "yarn download && yarn electron-forge package",
"electron:start": "electron-forge start"
},
"devDependencies": {
"@electron-forge/cli": "^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-squirrel": "^6.0.0-beta.54",
"@electron-forge/maker-wix": "^6.0.5",
"@electron-forge/maker-zip": "^6.0.0-beta.54",
"@taraus-he/tdunzip": "^1.0.4",
"axios": "^0.21.1",
@ -28,7 +29,9 @@
},
"config": {
"forge": {
"packagerConfig": {},
"packagerConfig": {
"icon": "./favicon.ico"
},
"makers": [
{
"name": "@electron-forge/maker-zip",
@ -39,6 +42,15 @@
"name": "lfk__scanclient"
}
},
{
"name": "@electron-forge/maker-wix",
"config": {
"manufacturer": "ODIT.Services",
"shortname": "LfKScan",
"name": "LfKScan",
"icon": "./favicon.ico"
}
},
{
"name": "@electron-forge/maker-deb",
"config": {}

3856
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff