Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Sep 10, 2016
0 parents commit 8d83ccc
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.AppImage
*.pkg
/build

10 changes: 10 additions & 0 deletions AppRun
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
set -e

APP_DIR=`dirname $0`
APP_DIR=`cd "$APP_DIR";pwd`

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APP_DIR/lib

exec "$APP_DIR/node" "$APP_DIR/iris-lib/iris.js"

50 changes: 50 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.PHONY: clean

VERSION=0.2.6
BUILD=1

ARCH=$(shell uname -p)
AIA=./AppImageAssistant_6-$(ARCH).AppImage
NATIVE_EXT=build/iris-lib/node_modules/serialport/build/Release/serialport.node

ifneq ($(shell node --version),v4.5.0)
$(error node version must be v4.5.0 but got $(shell node --version))
else ifneq ($(shell npm --version),3.10.7)
$(error npm version must be 3.10.7 but got $(shell npm --version))
endif


EaselDriver-$(VERSION)-$(ARCH)-$(BUILD).AppImage: build/AppRun build/easel.svg build/easel-driver.desktop build/node $(NATIVE_EXT)
-rm $@
$(AIA) build $@

build/AppRun: AppRun build
cp AppRun build/
chmod +x build/AppRun

build/easel.svg: easel.svg build
cp easel.svg build/

build/easel-driver.desktop: easel-driver.desktop build
cp easel-driver.desktop build/

$(NATIVE_EXT): build/iris-lib/iris.js build
(cd build/iris-lib && rm -rf node_modules && npm install && rm -rf node_modules/.bin node_modules/serialport/node_modules/.bin)
touch $(NATIVE_EXT)

build/node: build
cp $(shell which node) build/

build/iris-lib/iris.js: EaselDriver-0.2.6.pkg build
rm -rf tempdir
mkdir tempdir
7z x -otempdir EaselDriver-0.2.6.pkg
mkdir -p build/iris-lib
(cd build/iris-lib && gunzip <../../tempdir/IrisLib-0.2.6.pkg/Payload | cpio -i)
rm -rf tempdir
build:
mkdir -p build

clean:
rm -rf tempdir build

6 changes: 6 additions & 0 deletions easel-driver.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=EaselDriver
Exec=AppRun
Terminal=true
Icon=easel.svg

12 changes: 12 additions & 0 deletions easel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8d83ccc

Please sign in to comment.