Skip to content

Commit

Permalink
update make and sync files list
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <[email protected]>
  • Loading branch information
dartcafe committed Oct 1, 2024
1 parent 5e8dc72 commit 70dcae3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
19 changes: 3 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
app_name=polls

project_dir=.
build_dir=./build
build_dir=$(project_dir)/build
build_tools_dir=$(build_dir)/tools
build_source_dir=$(build_dir)/source
appstore_build_dir=$(build_dir)/artifacts/appstore
Expand Down Expand Up @@ -89,21 +89,8 @@ endif
package: clean
mkdir -p $(build_source_dir)
mkdir -p $(appstore_build_dir)
rsync -zarh \
$(project_dir)/appinfo \
$(project_dir)/img \
$(project_dir)/js \
$(project_dir)/l10n \
$(project_dir)/lib \
$(project_dir)/templates \
$(project_dir)/vendor \
$(project_dir)/COPYING \
$(project_dir)/README.md \
$(project_dir)/CHANGELOG.md \
--exclude="vendor/bin" \
$(build_source_dir)/$(app_name)
tar -czf $(appstore_package_name).tar.gz \
--directory="$(build_source_dir)" $(app_name)
rsync -zarh $(project_dir)/ --files-from="$(project_dir)/sync_list.txt" --exclude="vendor/bin" $(build_source_dir)/$(app_name)
tar -czf $(appstore_package_name).tar.gz --directory="$(build_source_dir)" $(app_name)
@if [ -f $(nc_cert_dir)/$(app_name).key ]; then \
echo "Signing package..."; \
openssl dgst -sha512 -sign $(nc_cert_dir)/$(app_name).key $(appstore_build_dir)/$(app_name).tar.gz | openssl base64; \
Expand Down
10 changes: 10 additions & 0 deletions sync_list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/appinfo
/img
/js
/l10n
/lib
/templates
/vendor
/COPYING
/README.md
/CHANGELOG.md

0 comments on commit 70dcae3

Please sign in to comment.