-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from gurucomputing/17-version-info-doesnt-make…
…-it-into-the-final-build 17 version info doesnt make it into the final build
- Loading branch information
Showing
3 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
#!/bin/sh | ||
set -x | ||
|
||
# add dependencies | ||
# jq for parsing version information | ||
# git for cloning the repository | ||
apk add --no-cache jq git | ||
|
||
#clone the project | ||
git clone ${PROJECT_URL} ${PROJECT_NAME} | ||
|
||
# install the project | ||
cd ${PROJECT_NAME} | ||
npm install | ||
|
||
# inject the version number | ||
VERSION=$(jq -r '.version' package.json) | ||
sed -i "s/insert-version/${VERSION}/g" ./src/routes/settings.html.svelte | ||
|
||
# build the project | ||
npm run build |