Skip to content

Instantly share code, notes, and snippets.

@diamondburned
Created May 19, 2020 21:19
Show Gist options
  • Save diamondburned/1020273ccd755a530b6029096b947609 to your computer and use it in GitHub Desktop.
Save diamondburned/1020273ccd755a530b6029096b947609 to your computer and use it in GitHub Desktop.
gtkcord3 AppImage instructions by ProTheory8

So instructions to make gtkcord 3 AppImage:

  1. Make a directory called AppDir
  2. Make a directories AppDir/usr/bin
  3. Compile gtkcord3 binary into that directory, for example go build -o AppDir/usr/bin/gtkcord3
  4. Make directory AppDir/usr/lib
  5. Make directories AppDir/usr/share/{applications,icons,metainfo}
  6. Make file AppDir/usr/share/metainfo/gtkcord3.appdata.xml and insert this: https://pastebin.com/08xGTPne
  7. Make file AppDir/usr/share/applications/gtkcord3.desktop and insert this: https://pastebin.com/DPZMLc6k
  8. Make directories AppDir/usr/share/icons/hicolor/128x128/apps
  9. Copy logo.png from gtkcord3 repo to AppDir/usr/share/icons/hicolor/128x128/apps/gtkcord3.png
  10. Resize that file to 128x128
  11. Symlink AppDir/usr/share/applications/gtkcord3.desktop to AppDir/gtkcord3.desktop
  12. Symlink AppDir/usr/share/icons/hicolor/128x128/apps/gtkcord3.png to AppDir/gtkcord3.png
  13. Make file AppDir/AppRun and insert this, then make AppDir/AppRun executable by chmod +x AppDir/AppRun.
  14. Compile GTK and libhandy right into your AppDir by setting prefix argument when configuring to AppDir/usr (use an absolute path though I think)
  15. libhandy might put their so files into AppDir/usr/lib64, move everything from there to AppDir/usr/lib (because you're only compiling for 1 arch anyway)
  16. Compile everything you want into your AppDir using similar technique
  17. Clean up your AppDir by removing such things as examples, documentation and other stuff.
  18. Finally,
# PWD = parent directory of AppDir
wget https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage ./AppDir
@diamondburned
Copy link
Author

i unfortunately dont have the links anymore.

@hthre7
Copy link

hthre7 commented Mar 15, 2021

oh no problem ,what about the content at least of AppRun?
anyway thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment