Skip to content

Commit

Permalink
Move build_aar.sh to scripts/, add build_appimage.sh,
Browse files Browse the repository at this point in the history
deploy appimage in ci
  • Loading branch information
daquexian committed Apr 11, 2019
1 parent 915302e commit 42029bd
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ script:
- cmake --build . -- "-j$(nproc)"
- cd ..
# Build aar
- ./build_aar.sh
- ./scripts/build_aar.sh
# Uncomment when android 27 or 28 emulator works
# - python3 validate_onnx.py squeezenet/model.onnx build_onnx2daq/tools/onnx2daq/onnx2daq build_android/binaries/dnn_infer softmaxout_1 squeezenet/test_data_set_0/

before_deploy:
- ./scripts/build_appimage.sh
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: onnx2daq.AppImage
skip_cleanup: true
on:
branch: master
tags: true
2 changes: 1 addition & 1 deletion android_aar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This directory is for building aar.

Run build_aar.sh in the parent directory.
Run scripts/build_aar.sh in the parent directory.
6 changes: 6 additions & 0 deletions appimage/onnx2daq.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=onnx2daq
Exec=onnx2daq
Icon=onnx2daq
Type=Application
Categories=Development;
Binary file added appimage/onnx2daq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
8 changes: 8 additions & 0 deletions scripts/build_appimage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/releases/download/continuous/linuxdeploy-plugin-appimage-x86_64.AppImage

chmod +x linuxdeploy-*.AppImage
mkdir -p appimage/usr/bin
cp build_onnx2daq/tools/onnx2daq/onnx2daq appimage/usr/bin/
./linuxdeploy-x86_64.AppImage --appdir appimage -d appimage/onnx2daq.desktop -i appimage/onnx2daq.png --output appimage
mv `ls onnx2daq-*.AppImage` onnx2daq.AppImage

0 comments on commit 42029bd

Please sign in to comment.