build: auto update safari version

This commit is contained in:
EnixCoda 2022-07-18 15:23:53 +08:00
parent 4cf15aa32f
commit 06e39bdb29
2 changed files with 4 additions and 0 deletions

View file

@ -9,6 +9,9 @@ update-icons:
node scripts/resolve-languages-map
node scripts/generate-icon-index
version-safari:
sed -i '' -E 's/MARKETING_VERSION = .*;/MARKETING_VERSION = $(RAW_VERSION);/' Safari/Gitako/Gitako.xcodeproj/project.pbxproj
build:
rm -rf dist
yarn build

View file

@ -14,6 +14,7 @@
"debug-firefox": "web-ext run --source-dir=dist --firefox-profile=firefox-profile --profile-create-if-missing --keep-profile-changes --start-url https://github.com/EnixCoda/Gitako",
"analyse-bundle": "ANALYSE= NODE_ENV=production webpack",
"postinstall": "node scripts/fix-deps",
"preversion": "make version-safari && git add .",
"build": "VERSION=v$(node scripts/get-version.js) NODE_ENV=production webpack",
"roll": "make release",
"test": "yarn run test:parallel && yarn run test:non-parallel",