Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Jan 25, 2024
1 parent b4e3fd8 commit bea75d1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- "master"
- "hotfix/**"
- "feature/test_desktop"

jobs:
binary:
Expand Down
20 changes: 20 additions & 0 deletions scripts/build-front.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,27 @@ set -e
CURR_DIR=$(cd "$(dirname "$0")" && pwd)

cd "$CURR_DIR"/../webapp

# shellcheck disable=SC2016
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's|"homepage".*|"homepage": "/static",|g' package.json
sed -i '' 's|loadPath.*|loadPath: `/static/locales/{{lng}}/{{ns}}.json?v=${version}`,|g' src/i18n.ts
else
sed -i 's|"homepage".*|"homepage": "/static",|g' package.json
sed -i 's|loadPath.*|loadPath: `/static/locales/{{lng}}/{{ns}}.json?v=${version}`,|g' src/i18n.ts
fi

npm run build

# shellcheck disable=SC2016
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's|"homepage".*|"homepage": "/",|g' package.json
sed -i '' 's|loadPath.*|loadPath: `/locales/{{lng}}/{{ns}}.json?v=${version}`,|g' src/i18n.ts
else
sed -i 's|"homepage".*|"homepage": "/",|g' package.json
sed -i 's|loadPath.*|loadPath: `/locales/{{lng}}/{{ns}}.json?v=${version}`,|g' src/i18n.ts
fi

cd ..
rm -fr resources/webapp
cp -r ./webapp/dist/ resources/webapp
Expand Down

0 comments on commit bea75d1

Please sign in to comment.