stefansl / image-shrinker

App for macOS. Minify your images and graphics with just one drop. Autorenamed in the same place where it comes from. Immediately!
https://image-shrinker.com
Creative Commons Zero v1.0 Universal
299 stars 33 forks source link

[Linux] APPIMAGE env is not defined, current application is not an AppImage #50

Open majamee opened 5 years ago

majamee commented 5 years ago

On Linux (Arch, 64bit) the app opens with a blank page and calling it from terminal it prints the following error: APPIMAGE env is not defined, current application is not an AppImage

Would be great to see this fixed. :)

stefansl commented 5 years ago

@jancborchardt do you have an idea?

jancborchardt commented 5 years ago

Unfortunately no idea as I’m also not very experienced with the building process. :\ It works fine here with Ubuntu 64 bit. @majamee could you clone the repository and build the app on your computer to test if that works? https://github.com/stefansl/image-shrinker#build-your-own

majamee commented 5 years ago

Unfortunately this does not seem to help, followed the instructions closely and here is the output ending in the same issue (first commands cut-off, but went through without issue just warning about a few vulnerabilities in the npm dependencies): npm run pack-linux

image-shrinker@1.4.0 pack-linux /home/majamee/#Apps/image-shrinker electron-packager . 'Image Shrinker' --platform=linux --arch=x64 --ignore=/^release/i --icon=assets/icons/png/512x512 --overwrite

Packaging app for platform linux x64 using electron v4.0.5 Wrote new app to /home/majamee/#Apps/image-shrinker/Image Shrinker-linux-x64 [majamee@gh0st image-shrinker]$ cd /home/majamee/#Apps/image-shrinker/Image\ Shrinker-linux-x64/ [majamee@gh0st Image Shrinker-linux-x64]$ ls chrome_100_percent.pak libGLESv2.so resources chrome_200_percent.pak libVkICD_mock_icd.so resources.pak icudtl.dat LICENSE snapshot_blob.bin 'Image Shrinker' LICENSES.chromium.html swiftshader libEGL.so locales v8_context_snapshot.bin libffmpeg.so natives_blob.bin version [majamee@gh0st Image Shrinker-linux-x64]$ ./Image\ Shrinker 18:44:07.211 › App starting... 18:44:07.411 › APPIMAGE env is not defined, current application is not an AppImage

stefansl commented 4 years ago

You could try the electron-builder. Just run npm run build-linux. But I guess, I have to adjust some settings in package.json: https://www.electron.build/configuration/linux