Skip to content

Commit

Permalink
Add appimage build script
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 5, 2019
1 parent 2f967f7 commit 0bf1a3b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/appimage/onnx2bnn.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Name=onnx2bnn
Exec=onnx2bnn
Icon=onnx2bnn
Type=Application
Terminal=true
Categories=Development;
Binary file added ci/appimage/onnx2bnn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions ci/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 ci/appimage/appdir/usr/bin
cp build_onnx2bnn/tools/onnx2bnn/onnx2bnn ci/appimage/appdir/usr/bin/
./linuxdeploy-x86_64.AppImage --appdir ci/appimage/appdir -d ci/appimage/onnx2bnn.desktop -i ci/appimage/onnx2bnn.png --output appimage
mv `ls onnx2bnn-*.AppImage` onnx2bnn.AppImage

0 comments on commit 0bf1a3b

Please sign in to comment.