Skip to content

Commit 7a8cc14

Browse files
committed
Fix (de)select invites menu item.
1 parent ee4ebe9 commit 7a8cc14

File tree

4 files changed

+313
-190
lines changed

4 files changed

+313
-190
lines changed

Makefile

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
# SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
33
# SPDX-License-Identifier: AGPL-3.0-or-later
44

5-
app_name=$(notdir $(CURDIR))
6-
project_directory=$(CURDIR)/../$(app_name)
5+
app_name="contacts"
6+
project_folder="nextcloud-contacts"
7+
8+
project_directory=$(CURDIR)/../$(project_folder)
79
appstore_build_directory=$(CURDIR)/build/artifacts
810
appstore_package_name=$(appstore_build_directory)/$(app_name)
911

@@ -20,3 +22,55 @@ clean-dev:
2022
# Builds the source package for the app store, ignores php and js tests
2123
appstore:
2224
krankerl package
25+
26+
# Builds the source package for the app store, ignores php and js tests
27+
# command: make version={version_number} buildapp
28+
# concatenate cd, ls and tar commands with '&&' otherwise the script context will remain the root instead of build
29+
.PHONY: buildapp
30+
buildapp:
31+
make check-version
32+
33+
version=$(version)
34+
35+
make clean-buildapp
36+
37+
mkdir -p $(appstore_build_directory)
38+
cd build && \
39+
ln -s ../ $(app_name) && \
40+
tar cvzfh $(appstore_build_directory)/$(app_name)_$(version).tar.gz \
41+
--exclude="$(app_name)/build" \
42+
--exclude="$(app_name)/release" \
43+
--exclude="$(app_name)/tests" \
44+
--exclude="$(app_name)/src" \
45+
--exclude="$(app_name)/tests" \
46+
--exclude="$(app_name)/vite.config.js" \
47+
--exclude="$(app_name)/*.log" \
48+
--exclude="$(app_name)/phpunit*xml" \
49+
--exclude="$(app_name)/composer.*" \
50+
--exclude="$(app_name)/node_modules" \
51+
--exclude="$(app_name)/js/node_modules" \
52+
--exclude="$(app_name)/js/tests" \
53+
--exclude="$(app_name)/js/test" \
54+
--exclude="$(app_name)/js/*.log" \
55+
--exclude="$(app_name)/js/package.json" \
56+
--exclude="$(app_name)/js/bower.json" \
57+
--exclude="$(app_name)/js/karma.*" \
58+
--exclude="$(app_name)/js/protractor.*" \
59+
--exclude="$(app_name)/package.json" \
60+
--exclude="$(app_name)/bower.json" \
61+
--exclude="$(app_name)/karma.*" \
62+
--exclude="$(app_name)/protractor\.*" \
63+
--exclude="$(app_name)/.*" \
64+
--exclude="$(app_name)/js/.*" \
65+
--exclude-vcs \
66+
$(app_name) && \
67+
rm $(app_name)
68+
69+
clean-buildapp:
70+
rm -rf ${appstore_build_directory}
71+
72+
check-version:
73+
@if [ "${version}" = "" ]; then\
74+
echo "Error: You must set version, eg. make -e version=v0.0.1 buildapp";\
75+
exit 1;\
76+
fi

0 commit comments

Comments
 (0)