Skip to content

Commit

Permalink
try to add an appimage in Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Cloud User <[email protected]>
  • Loading branch information
outscale-mgo committed May 18, 2021
1 parent 5f48c7f commit 10f7882
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
osc-get: osc-get.o
$(CC) -ljson-c -pedantic -Wall -Wextra osc-get.o -o osc-get

appimagetool-x86_64.AppImage:
wget https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage

osc-get-x86_64.AppImage: osc-get appimagetool-x86_64.AppImage
mkdir -p osc-get.AppDir/usr/
mkdir -p osc-get.AppDir/usr/bin/
mkdir -p osc-get.AppDir/usr/lib/
cp osc-get osc-get.AppDir/usr/bin/
cp $(shell ldd osc-get | grep json | cut -d ' ' -f 3) osc-get.AppDir/usr/lib/
./appimagetool-x86_64.AppImage osc-get.AppDir
3 changes: 3 additions & 0 deletions osc-get.AppDir/AppRun
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

"${APPDIR}/usr/bin/osc-get" "$@"
Binary file added osc-get.AppDir/appimage-logo.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 osc-get.AppDir/osc-get.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=osc-get
Exec=osc-get
Comment=Outscale simpel Helper to retrive AK/SK
Categories=Development;
Terminal=true
Icon=appimage-logo

0 comments on commit 10f7882

Please sign in to comment.