Skip to content

Commit

Permalink
Merge pull request #2 from chadek/ci
Browse files Browse the repository at this point in the history
Update makefile to make a clean build
  • Loading branch information
chadek authored Feb 5, 2024
2 parents 5b8c992 + a4ca41b commit 0785741
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
path: ${{ env.APP_NAME }}

- name: Run build
run: cd ${{ env.APP_NAME }} && make
# run: cd ${{ env.APP_NAME }} && make appstore
run: cd ${{ env.APP_NAME }} && make appstore

- name: Upload app tarball to release
uses: svenstaro/upload-release-action@v2
Expand Down
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
app_name=documentserver_community
project_dir=$(CURDIR)/../$(app_name)
build_dir=$(project_dir)/build
appstore_dir=$(build_dir)/appstore
appstore_build_directory=$(CURDIR)/build/artifacts/appstore
appstore_package_name=$(appstore_build_directory)/$(app_name)
sign_dir=$(build_dir)/sign
package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
Expand All @@ -12,6 +13,20 @@ clean:
rm -rf 3rdparty/onlyoffice
rm -rf build

appstore:
make clean
make all
rm -rf $(appstore_build_directory)
mkdir -p $(appstore_build_directory)
tar cvzf $(appstore_package_name).tar.gz \
--exclude-vcs \
--exclude="../$(app_name)/build" \
--exclude="../$(app_name)/tests" \
--exclude="../$(app_name)/Makefile" \
--exclude="../$(app_name)/screenshots" \
--exclude="../$(app_name)/.*" \
--exclude="../$(app_name)/krankerl.toml" \

3rdparty/onlyoffice/documentserver:
mkdir -p 3rdparty/onlyoffice
mkdir -p oo-extract
Expand Down

0 comments on commit 0785741

Please sign in to comment.