-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8d83ccc
Showing
5 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.AppImage | ||
*.pkg | ||
/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|