Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Needham committed Aug 13, 2018
1 parent b460be2 commit 22f6d1a
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
.DS_Store
62 changes: 62 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
SHELL := /bin/bash

#
# Define NPM and check if it is available on the system.
#
NPM := $(shell command -v npm 2> /dev/null)
ifndef NPM
$(error npm is not available on your system, please install npm)
endif
app_name=$(notdir $(CURDIR))
project_directory=$(CURDIR)/../$(app_name)
build_tools_directory=$(CURDIR)/build/tools
appstore_package_name=$(CURDIR)/build/dist/$(app_name)

occ=$(CURDIR)/../../occ
private_key=$(HOME)/.owncloud/certificates/$(app_name).key
certificate=$(HOME)/.owncloud/certificates/$(app_name).crt
sign=php -f $(occ) integrity:sign-app --privateKey="$(private_key)" --certificate="$(certificate)"
sign_skip_msg="Skipping signing, either no key and certificate found in $(private_key) and $(certificate) or occ can not be found at $(occ)"
ifneq (,$(wildcard $(private_key)))
ifneq (,$(wildcard $(certificate)))
ifneq (,$(wildcard $(occ)))
CAN_SIGN=true
endif
endif
endif

PHPUNIT="$(PWD)/lib/composer/phpunit/phpunit/phpunit"

drawio_doc_files=COPYING.txt screenshot.png
drawio_src_dirs=appinfo img css js lib templates
drawio_all_src=$(drawio_src_dirs) $(drawio_doc_files)
build_dir=build
dist_dir=$(build_dir)/dist

.PHONY: clean
clean: clean-dist clean-build

#
# dist
#

$(dist_dir)/drawio:
rm -Rf $@; mkdir -p $@
cp -R $(drawio_all_src) $@

.PHONY: dist
dist: clean $(dist_dir)/drawio
ifdef CAN_SIGN
$(sign) --path="$(appstore_package_name)"
else
@echo $(sign_skip_msg)
endif
COPYFILE_DISABLE=1 tar --exclude='._*' -czf $(appstore_package_name).tar.gz -C $(appstore_package_name)/../ $(app_name)

.PHONY: clean-dist
clean-dist:
rm -Rf $(dist_dir)

.PHONY: clean-build
clean-build:
rm -Rf $(build_dir)
6 changes: 4 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
<id>drawio</id>
<name>Drawio</name>
<description>Drawio diagrams right inside ownCloud</description>
<licence>GPL</licence>
<licence>gplv2</licence>
<author>Tom Needham</author>
<version>0.0.1</version>
<version>0.0.7</version>
<category>productivity</category>
<summary>Integration of Draw.io editor into ownCloud Files app for creating and modifying diagrams</summary>
<screenshot>https://raw.githubusercontent.com/tomneedham/oc-drawio/master/screenshot.png</screenshot>
<dependencies>
<owncloud min-version="10.0" max-version="10.1" />
</dependencies>
Expand Down

0 comments on commit 22f6d1a

Please sign in to comment.