side_menu/Makefile

38 lines
1.1 KiB
Makefile
Raw Normal View History

2022-10-16 23:11:41 +02:00
build: dep
2020-08-28 17:11:12 +02:00
npm run build
2022-10-16 23:11:41 +02:00
watch: dep
2020-08-28 17:11:12 +02:00
npm run watch
dep:
2022-10-16 22:54:28 +02:00
npm i
2022-10-16 23:13:52 +02:00
npm link @nextcloud/vue || sudo npm link @nextcloud/vue
2020-08-28 17:11:12 +02:00
.ONESHELL:
release: build translations
2020-08-28 17:11:12 +02:00
if [ -z "$$VERSION" ]; then
echo "VERSION required"
exit 1
fi
2021-11-14 17:32:54 +01:00
if [ -z "$$RELEASE_DIRECTORY" ]; then
RELEASE_DIRECTORY=releases
fi
test -d $$RELEASE_DIRECTORY/$$VERSION && rm -fr $$RELEASE_DIRECTORY/$$VERSION
mkdir -p $$RELEASE_DIRECTORY/$$VERSION/side_menu
cp -r README.md CHANGELOG.md appinfo css lib img l10n js src templates screenshots vendor $$RELEASE_DIRECTORY/$$VERSION/side_menu
cd $$RELEASE_DIRECTORY/$$VERSION
2020-08-28 20:13:10 +02:00
zip -r side_menu_v$$VERSION.zip side_menu
tar cvzf side_menu_v$$VERSION.tar.gz side_menu
rm -fr side_menu
2020-08-28 17:11:12 +02:00
openssl dgst -sha512 -sign $$HOME/.nextcloud/certificates/side_menu.key side_menu_v$$VERSION.tar.gz | openssl base64 > side_menu_v$$VERSION.sig
2020-08-28 17:29:03 +02:00
2020-08-28 17:11:12 +02:00
translations:
php bin/generate_l10n.php
2022-08-21 16:20:05 +02:00
.ONESHELL:
run-code-quality-analysis:
export SONAR_TOKEN="$$SONAR_TOKEN_DEBLAN_SIDE_MENU"
sonar-scanner -Dsonar.projectKey=deblan-side_menu -Dsonar.sources=. -Dsonar.host.url=https://cq.gitnet.fr