Created
November 27, 2018 23:58
-
-
Save shrmpy/f4584f4cb0b4c9b96d4a5aceceebf180 to your computer and use it in GitHub Desktop.
Build Flourine snap using the containerized Electron-builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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