Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

ricardodantas/svghero-app

Repository files navigation

Powered by Electron GitHub branch checks state GitHub GitHub issues GitHub last commit GitHub all releases

SvgHero

Multi-platform (Mac, Windows, Linux) app that minifies SVG files and exports to PNG, JPG, TIFF or WEBP.

Check the video preview!

Check the video preview 👆


Download

⬇️ Download here

Sponsor

Buy Me A Coffee

Contributing

More details on CONTRIBUTING.


Starting Development

Start the app in the dev environment:

yarn
yarn start

Packaging for Production

To package apps for the local platform:

yarn package

Create Linux package with docker

docker run --rm -ti \
 --env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \
 --env ELECTRON_CACHE="/root/.cache/electron" \
 --env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
 -v ${PWD}:/project \
 -v ${PWD##*/}-node-modules:/project/node_modules \
 -v ~/.cache/electron:/root/.cache/electron \
 -v ~/.cache/electron-builder:/root/.cache/electron-builder \
 electronuserland/builder:wine

Debug Packaged app

  1. Run the command bellow on terminal:
open /Applications/SvgHero.app --args --remote-debugging-port=8315
  1. Navigate to chrome://inspect/#devices in Chrome 80+. Then click Configure... and add localhost:8315 as a discovery server.

  2. Then, wait for your Electron instance to appear in the devices list and click inspec

Issues with certificates (Apple):

  1. Change your trust settings of your developer certificate in keychain access to system default
  2. Delete all certificates in your local keychain
  3. Quit and relaunch xcode
  4. Clean
  5. Run program on device
  6. When it asks, enter your keychain password and click always trust

Check Mac Code Sign

codesign --display --verbose=2  SvgHero.app // If the app is signed it will display the details in the Terminal.
pkgutil --check-signature SvgHero-1.0.0.pkg // If it is signed it will display the details in the Terminal.

Resources

License

GPL-3.0, see LICENSE.