Skip to content

Commit

Permalink
Merge pull request #2832 from owncloud/feature/oc10-tarball
Browse files Browse the repository at this point in the history
ownCloud 10 apps require a different tar layout - we build two differ…
  • Loading branch information
DeepDiver1975 authored Jan 10, 2020
2 parents 9498768 + c244104 commit 1abb34b
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Makefile.release
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ YARN := $(shell command -v yarn 2> /dev/null)
ifndef YARN
$(error yarn is not available on your system, please install npm)
endif


UNAME_S := $(shell uname -s)
ifneq ($(UNAME_S),Linux)
$(error Linux is required to properly build a release)
endif

app_name=phoenix
cur_dir=$(CURDIR)
Expand Down Expand Up @@ -66,7 +68,18 @@ else
endif

.PHONY: package
package:
package: create-release-folder package-plain package-ocx

.PHONY: create-release-folder
create-release-folder:
rm -rf $(CURDIR)/release
mkdir $(CURDIR)/release
cd $(dist_dir) && tar -czf $(CURDIR)/release/$(app_name).tar.gz -C $(dist_dir) * .htaccess

.PHONY: package-plain
package-plain:
cd $(dist_dir) && tar -czf $(CURDIR)/release/$(app_name).tar.gz --exclude=appinfo -C $(dist_dir) * .htaccess

.PHONY: package-ocx
package-ocx:
tar -czf $(CURDIR)/release/$(app_name)-app.tar.gz --transform='s,dist,phoenix,' dist

0 comments on commit 1abb34b

Please sign in to comment.