Skip to content

Instantly share code, notes, and snippets.

@shrmpy
Created November 27, 2018 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrmpy/f4584f4cb0b4c9b96d4a5aceceebf180 to your computer and use it in GitHub Desktop.
Save shrmpy/f4584f4cb0b4c9b96d4a5aceceebf180 to your computer and use it in GitHub Desktop.
Build Flourine snap using the containerized Electron-builder
# Build Fluorine snap
# 1. Save this as a file named Dockerfile (e.g., /tmp/Dockerfile)
# 2. Build the container
# cd /tmp/Dockerfile
# docker build -t fluorine .
#
# The result Fluorine_1.2.5_amd64.snap file is inside the container /usr/local/fluorine/dist
# 3. To copy the file, run the container with a mount argument:
# docker run -ti --rm -v $PWD:/tmp/tocopy --entrypoint sh fluorine
# >cp /usr/local/fluorine/dist/Fluorine_1.2.5_amd64.snap /tmp/tocopy/
# >exit
#
# 4. Then install the snap:
# sudo snap install Fluorine_1.2.5_amd64.snap --dangerous
FROM electronuserland/builder
RUN git clone https://github.com/fohristiwhirl/fluorine /usr/local/fluorine ; \
cd /usr/local/fluorine ; \
npm install ; \
npx electron-builder --linux snap ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment