Browse Source

Make electron-builder package icon for .AppImage

master
meriadec 7 years ago
parent
commit
5d6a90276d
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. BIN
      build/icon.icns
  2. 13
      scripts/dist.sh

BIN
build/icon.icns

Binary file not shown.

13
scripts/dist.sh

@ -1,3 +1,16 @@
#!/bin/bash #!/bin/bash
# hilarious fix: to make linux icon we have to remove icon.png from build folder
# some context:
# - https://github.com/electron-userland/electron-builder/issues/2577
# - https://github.com/electron-userland/electron-builder/issues/2269
if [[ `uname` == 'Linux' ]]; then
mv build/icon.png /tmp
fi
yarn compile && DEBUG=electron-builder electron-builder yarn compile && DEBUG=electron-builder electron-builder
# hilarious fix continuation: put back the icon where it was
if [[ `uname` == 'Linux' ]]; then
mv /tmp/icon.png build
fi

Loading…
Cancel
Save