mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
27 lines
734 B
Makefile
Executable file
27 lines
734 B
Makefile
Executable file
RAW_VERSION?=$(shell node scripts/get-version.js)
|
|
FULL_VERSION=v$(RAW_VERSION)
|
|
|
|
build:
|
|
rm -rf dist
|
|
yarn build
|
|
|
|
upload-for-analytics:
|
|
# make sure sentry can retrieve current commit on remote
|
|
git push --tags
|
|
yarn sentry-cli releases new "$(FULL_VERSION)"
|
|
yarn sentry-cli releases set-commits "$(FULL_VERSION)" --auto
|
|
yarn sentry-cli releases files "$(FULL_VERSION)" upload-sourcemaps dist --no-rewrite
|
|
yarn sentry-cli releases finalize "$(FULL_VERSION)"
|
|
|
|
compress:
|
|
rm -f dist/gitako.zip
|
|
cd dist && zip -r gitako-$(FULL_VERSION).zip * -x *.map -x *.DS_Store
|
|
|
|
release:
|
|
$(MAKE) build
|
|
$(MAKE) upload-for-analytics
|
|
$(MAKE) compress
|
|
$(MAKE) compress-source
|
|
|
|
compress-source:
|
|
git archive -o dist/source-$(FULL_VERSION).zip HEAD
|