@@ -41,7 +41,7 @@ app_name=$(notdir $(CURDIR))
4141build_tools_directory =$(CURDIR ) /build/tools
4242source_build_directory =$(CURDIR ) /build/artifacts/source
4343source_package_name =$(source_build_directory ) /$(app_name )
44- appstore_build_directory =$(CURDIR ) /build/artifacts/appstore
44+ appstore_build_directory =$(CURDIR ) /build/artifacts
4545appstore_package_name =$(appstore_build_directory ) /$(app_name )
4646npm =$(shell which npm 2> /dev/null)
4747composer =$(shell which composer 2> /dev/null)
@@ -111,27 +111,30 @@ dist:
111111source :
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
124126appstore :
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
151161test : composer
0 commit comments