forked from onivim/oni2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaging: Linux AppImage - Part 1 (onivim#405)
* Update script * Copy desktop file * Add icon512 * Create AppImage * Add AppRun
- Loading branch information
Showing
6 changed files
with
48 additions
and
2 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 |
---|---|---|
|
@@ -65,6 +65,7 @@ typings/ | |
_build/ | ||
_esy/ | ||
_release/ | ||
_staging/ | ||
|
||
.DS_Store | ||
setup.txt | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
#!/bin/sh | ||
HERE=$(dirname $(readlink -f "${0}")) | ||
export PATH="${HERE}/usr/bin":$PATH | ||
export LD_LIBRARY_PATH="${HERE}/usr/lib/":$LD_LIBRARY_PATH | ||
${HERE}/usr/bin/Oni2 $@ | ||
|
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=Onivim2 | ||
Exec=Oni2 | ||
Icon=Onivim2 | ||
Type=Application | ||
Categories=Development; |
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,31 @@ | ||
echo "cur bin $cur__bin" | ||
|
||
rm -rf _release | ||
rm -rf _staging | ||
|
||
mkdir -p _release/linux | ||
mkdir -p _staging | ||
|
||
cp -r $cur__bin _release/linux | ||
|
||
wget -O _staging/linuxdeploy-x86_64.AppImage https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | ||
chmod +x _staging/linuxdeploy-x86_64.AppImage | ||
|
||
wget -O _staging/appimagetool-x86_64.AppImage https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage | ||
chmod +x _staging/appimagetool-x86_64.AppImage | ||
|
||
cp scripts/linux/Onivim2.desktop _release/linux/Onivim2.desktop | ||
cp assets/images/icon512.png _release/linux/Onivim2.png | ||
|
||
./_staging/linuxdeploy-x86_64.AppImage -e _release/linux/bin/Oni2_editor --appdir _release/Onivim2.AppDir -d _release/linux/Onivim2.desktop -i _release/linux/Onivim2.png | ||
|
||
cp scripts/linux/Onivim2.desktop _release/Onivim2.AppDir/Onivim2.desktop | ||
cp scripts/linux/AppRun _release/Onivim2.AppDir/AppRun | ||
chmod +x _release/Onivim2.AppDir/AppRun | ||
cp assets/images/icon512.png _release/Onivim2.AppDir/Onivim2.png | ||
|
||
cp _release/linux/bin/*.* _release/Onivim2.AppDir/usr/bin | ||
cp _release/linux/bin/Oni2 _release/Onivim2.AppDir/usr/bin/Oni2 | ||
|
||
ARCH=x86_64 _staging/appimagetool-x86_64.AppImage _release/Onivim2.AppDir _release/Onivim2-x86_64.AppImage | ||
|
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