Compare commits

..

6 Commits

Author SHA1 Message Date
renovate 9e0b3b679d chore(deps): update dependency electron to v26
continuous-integration/drone/push Build is passing Details
2023-09-07 04:03:01 +00:00
kolaente 51376d05de
fix: read frontend version from release zip
continuous-integration/drone/push Build is passing Details
2023-09-04 22:27:04 +02:00
kolaente 757e3f5c93
chore(ci): debug
continuous-integration/drone/push Build is failing Details
2023-09-04 22:14:04 +02:00
kolaente 5977a931d0
fix: properly replace version
continuous-integration/drone/push Build is failing Details
2023-09-04 22:09:02 +02:00
kolaente e5b4cc23e4
fix: add script
continuous-integration/drone/push Build is failing Details
2023-09-04 22:05:36 +02:00
kolaente 63519c15d2
fix: version in release files
continuous-integration/drone/push Build is failing Details
This change automatically updates the version in the package.json file
which will be taken into account by electron-builder to include the
correct package version in release files.

Resolves https://github.com/go-vikunja/desktop/issues/9
2023-09-04 22:03:50 +02:00
3 changed files with 15 additions and 6 deletions

View File

@ -51,8 +51,7 @@ steps:
- wget https://dl.vikunja.io/frontend/vikunja-frontend-$$VERSION.zip
- unzip vikunja-frontend-$$VERSION.zip -d frontend
- sed -i 's/\\/api\\/v1//g' frontend/index.html
# Make sure that the -unstable suffix is added to release files
- sed -i "s/\$${version}/$$VERSION/g" package.json
- ./bumpp.sh
- yarn install
- yarn dist --linux --windows
@ -125,9 +124,9 @@ steps:
- wget https://dl.vikunja.io/frontend/vikunja-frontend-$$VERSION.zip
- unzip vikunja-frontend-$$VERSION.zip -d frontend
- sed -i 's/\\/api\\/v1//g' frontend/index.html
# Make sure that the -unstable suffix is added to release files
- sed -i "s/\$${version}/$$VERSION/g" package.json
- ./bumpp.sh
- yarn install
- cat package.json
- yarn dist --linux --windows
- name: rebuild-cache
@ -231,6 +230,6 @@ steps:
---
kind: signature
hmac: f5aa08e285044e34b02b197a309bb8682b8cc9adf630dabaa18cc09cc6b50cf6
hmac: 83cd065e5a1e4450318b3d730e38adbbaaebf18e3e62351e5b5579cbaf76b7ba
...

10
bumpp.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -xe
frontend_version=$(sed -n 's/.*"VERSION": "\([^"]*\)".*/\1/p' ./frontend/version.json)
sed -i "s/\${version}/$frontend_version/g" package.json
sed -i "s/\"version\": \".*\"/\"version\": \"$frontend_version\"/" package.json

View File

@ -51,7 +51,7 @@
}
},
"devDependencies": {
"electron": "26.1.0",
"electron": "26.2.0",
"electron-builder": "24.6.3"
},
"dependencies": {