Don't replace everything when releasing
continuous-integration/drone/push Build was killed Details

This commit is contained in:
kolaente 2020-10-17 20:04:26 +02:00
parent 0999f9ae9b
commit 9a0da1003e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 2 additions and 13 deletions

View File

@ -20,11 +20,7 @@ steps:
# TODO: Move to a yarn script
- wget https://dl.vikunja.io/frontend/vikunja-frontend-master.zip
- unzip vikunja-frontend-master.zip -d frontend
- sed -i 's/\\/fonts/file\:\\/\\/fonts/g' frontend/index.html
- sed -i 's/\\/js/file\:\\/\\/js/g' frontend/index.html
- sed -i 's/\\/css/file\:\\/\\/css/g' frontend/index.html
- sed -i 's/\\/images/file\:\\/\\/images/g' frontend/index.html
- sed -i "s/\\/'images/'file\:\\/\\/images/g" frontend/js/*
- sed -i 's/\/api\/v1//g' frontend/index.html
- yarn install
- export BUILD_NUMBER=master
- yarn dist --linux --windows

View File

@ -1,6 +1,5 @@
{
"name": "vikunja-desktop",
"version": "0.14.0",
"description": "Vikunja's frontend as a standalone desktop application.",
"main": "main.js",
"repository": "https://code.vikunja.io/desktop",

View File

@ -13,13 +13,7 @@ actual frontend bundle and build the app:
rm -rf frontend vikunja-frontend-master.zip
wget https://dl.vikunja.io/frontend/vikunja-frontend-master.zip
unzip vikunja-frontend-master.zip -d frontend
sed -i 's/\/fonts/.\/fonts/g' frontend/index.html
sed -i 's/\/js/.\/js/g' frontend/index.html
sed -i 's/\/css/.\/css/g' frontend/index.html
sed -i 's/\/images/.\/images/g' frontend/index.html
sed -i 's/\/images/.\/images/g' frontend/js/*
sed -i 's/\/css/.\/css/g' frontend/js/*
sed -i 's/\/js/.\/js/g' frontend/js/*
sed -i 's/\/api\/v1//g' frontend/index.html # Make sure to trigger the "enter the Vikunja url" prompt
```
## Building for release