Skip to content

Commit

Permalink
Merge pull request #1566 from unipept/feature/deploy-script
Browse files Browse the repository at this point in the history
Add post-build script that automatically configures umgap files
  • Loading branch information
pverscha committed Apr 15, 2024
2 parents 877a9c7 + 2e29dc4 commit 7767ba6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "5.1.2",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"build": "vue-tsc --noEmit && vite build && ./post-build.sh",
"preview": "vite preview",
"lint": "eslint . --fix --ignore-path .gitignore"
},
Expand Down
13 changes: 13 additions & 0 deletions post-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This script should be executed after the application has been compiled and built. This script is automatically
# executed as part of the "build"-command of npm (as defined in the package.json file).

# First step, create links to the files that are required by the UMGAP pipeline in the correct location.
UMGAP_VERSION="2024-03-07"
mkdir dist/system
mkdir dist/system/umgap
mkdir dist/system/umgap/${UMGAP_VERSION}

printf "${UMGAP_VERSION}\n" > latest
ln -s "/mnt/datapept/${UMGAP_VERSION}/taxons.tsv" "dist/system/umgap/${UMGAP_VERSION}/taxons.tsv"
ln -s "/mnt/datapept/${UMGAP_VERSION}/tryptic.fst" "dist/system/umgap/${UMGAP_VERSION}/tryptic.fst"
ln -s "/mnt/datapept/${UMGAP_VERSION}/ninemer.fst" "dist/system/umgap/${UMGAP_VERSION}/ninemer.fst"

0 comments on commit 7767ba6

Please sign in to comment.