1
0
Fork 0
mirror of https://github.com/mwalbeck/nextcloud-breeze-dark.git synced 2025-04-08 15:00:11 +00:00

Add makefile and vscode tasks file

This commit is contained in:
Magnus Walbeck 2020-08-08 20:18:10 +02:00
parent a2f6694ed1
commit c00c9e14e6
Signed by: mwalbeck
GPG key ID: CCB78CFF3F950769
3 changed files with 44 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
appstore

27
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,27 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "create release",
"type": "shell",
"command": "make appstore & make sign_release",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "appstore",
"type": "shell",
"command": "make appstore",
},
{
"label": "sign release",
"type": "shell",
"command": "make sign_release",
}
]
}

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
app_name=breezedark
appstore_dir=$(CURDIR)/appstore
appstore:
rm -rf $(appstore_dir)
mkdir -p $(appstore_dir)
tar cvzf $(appstore_dir)/$(app_name).tar.gz \
--exclude-vcs \
--exclude="../$(app_name)/.github" \
--exclude="../$(app_name)/.vscode" \
--exclude="../$(app_name)/appstore" \
--exclude="../$(app_name)/Makefile" \
../$(app_name)
sign_release:
openssl dgst -sha512 -sign $(HOME)/.nextcloud/certificates/breezedark.key $(appstore_dir)/$(app_name).tar.gz | openssl base64