Skip to content

Commit cbeda22

Browse files
authored
Merge pull request #1166 from nextcloud/MB-Finski-patch-1
Update app template Makefile
2 parents 3f62566 + 766559a commit cbeda22

File tree

1 file changed

+14
-4
lines changed
  • nextcloudappstore/scaffolding/app-templates/25/app

1 file changed

+14
-4
lines changed

nextcloudappstore/scaffolding/app-templates/25/app/Makefile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ app_name=$(notdir $(CURDIR))
4141
build_tools_directory=$(CURDIR)/build/tools
4242
source_build_directory=$(CURDIR)/build/artifacts/source
4343
source_package_name=$(source_build_directory)/$(app_name)
44-
appstore_build_directory=$(CURDIR)/build/artifacts/appstore
44+
appstore_build_directory=$(CURDIR)/build/artifacts
4545
appstore_package_name=$(appstore_build_directory)/$(app_name)
4646
npm=$(shell which npm 2> /dev/null)
4747
composer=$(shell which composer 2> /dev/null)
@@ -111,27 +111,30 @@ dist:
111111
source:
112112
rm -rf $(source_build_directory)
113113
mkdir -p $(source_build_directory)
114-
tar cvzf $(source_package_name).tar.gz ../$(app_name) \
114+
tar cvzf $(source_package_name).tar.gz \
115115
--exclude-vcs \
116116
--exclude="../$(app_name)/build" \
117117
--exclude="../$(app_name)/js/node_modules" \
118118
--exclude="../$(app_name)/node_modules" \
119119
--exclude="../$(app_name)/*.log" \
120120
--exclude="../$(app_name)/js/*.log" \
121+
../$(app_name) \
121122

122-
# Builds the source package for the app store, ignores php and js tests
123+
# Builds the source package for the app store, ignores php tests, js tests
124+
# and build related folders that are unnecessary for an appstore release
123125
.PHONY: appstore
124126
appstore:
125127
rm -rf $(appstore_build_directory)
126128
mkdir -p $(appstore_build_directory)
127-
tar cvzf $(appstore_package_name).tar.gz ../$(app_name) \
129+
tar cvzf $(appstore_package_name).tar.gz \
128130
--exclude-vcs \
129131
--exclude="../$(app_name)/build" \
130132
--exclude="../$(app_name)/tests" \
131133
--exclude="../$(app_name)/Makefile" \
132134
--exclude="../$(app_name)/*.log" \
133135
--exclude="../$(app_name)/phpunit*xml" \
134136
--exclude="../$(app_name)/composer.*" \
137+
--exclude="../$(app_name)/node_modules" \
135138
--exclude="../$(app_name)/js/node_modules" \
136139
--exclude="../$(app_name)/js/tests" \
137140
--exclude="../$(app_name)/js/test" \
@@ -146,6 +149,13 @@ appstore:
146149
--exclude="../$(app_name)/protractor\.*" \
147150
--exclude="../$(app_name)/.*" \
148151
--exclude="../$(app_name)/js/.*" \
152+
--exclude="../$(app_name)/webpack.config.js" \
153+
--exclude="../$(app_name)/stylelint.config.js" \
154+
--exclude="../$(app_name)/CHANGELOG.md" \
155+
--exclude="../$(app_name)/README.md" \
156+
--exclude="../$(app_name)/package-lock.json" \
157+
--exclude="../$(app_name)/LICENSES" \
158+
../$(app_name) \
149159

150160
.PHONY: test
151161
test: composer

0 commit comments

Comments
 (0)