[GH-ISSUE #1063] Build for snap #617

Closed
opened 2026-02-27 00:00:16 +03:00 by kerem · 6 comments
Owner

Originally created by @kholisrag on GitHub (Jan 4, 2019).
Original GitHub issue: https://github.com/electerm/electerm/issues/1063

Electerm version: latest

Operating system(linux, macos, or windows7/8/10?):

linux ubuntu 1804

Expected Behavior

I want to build to snap app,

Current Behavior

cannot build to snap app

Possible Solution

Edit package.json to enable build for snap

Context (Environment)

I want to build it to snappy package .snap

Detailed Description

I'm using your code + add a line in scripts on package.json with:
"snap":"./node_modules/.bin/electron-builder --linux snap" but it's return error

I want to research it, but I think your code for me is extreme custom in compile/build the source code

Suggestions?

I just can provide this link to you :
https://docs.snapcraft.io/electron-apps/6748?_ga=2.63732780.2073004274.1546627457-563229706.1546455503

Originally created by @kholisrag on GitHub (Jan 4, 2019). Original GitHub issue: https://github.com/electerm/electerm/issues/1063 <!--- Provide some basic info --> ## Electerm version: latest ## Operating system(linux, macos, or windows7/8/10?): linux ubuntu 1804 ## Expected Behavior I want to build to snap app, ## Current Behavior cannot build to snap app ## Possible Solution Edit `package.json` to enable build for snap ## Context (Environment) I want to build it to snappy package .snap ## Detailed Description I'm using your code + add a line in `scripts` on `package.json` with: `"snap":"./node_modules/.bin/electron-builder --linux snap"` but it's return error I want to research it, but I think your code for me is extreme custom in compile/build the source code ## Suggestions? I just can provide this link to you : [https://docs.snapcraft.io/electron-apps/6748?_ga=2.63732780.2073004274.1546627457-563229706.1546455503](url)
kerem 2026-02-27 00:00:16 +03:00
Author
Owner

@zxdong262 commented on GitHub (Jan 5, 2019):

@petrukngantuk Sure, I will check this.

<!-- gh-comment-id:451627195 --> @zxdong262 commented on GitHub (Jan 5, 2019): @petrukngantuk Sure, I will check this.
Author
Owner

@kholisrag commented on GitHub (Jan 5, 2019):

@petrukngantuk Sure, I will check this.

thanks sir...
Edited: in electron-builder.json I edited the target to snap, it's done compiling and installing, but when running it's failed to run, here is the log:

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Documents': No such file or directory
ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Desktop': No such file or directory
ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Downloads': No such file or directory
ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Music': No such file or directory
ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Pictures': No such file or directory
ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Videos': No such file or directory
ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Templates': No such file or directory
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
error parsing $HOME/.ssh/config
maybe no $HOME/.ssh/config, but it is ok
no user config, but it is ok
no ../../install-src file
no install-src file
[16:12:38.441] [info] App starting...
no /root/snap/electerm/x2/.config/electerm-config.js but it is ok
no /root/snap/electerm/x2/.config/electerm-user-config.json but it is ok
no electerm-localstorage.json, but it is ok.
Trace/breakpoint trap (core dumped)

sir @zxdong262 , how to disable build for rpm in your source code?
beacuse it's return error for me in ubuntu 1804,
Edited: Fixed with remove rpm in target section electron-builder.json

<!-- gh-comment-id:451633509 --> @kholisrag commented on GitHub (Jan 5, 2019): > @petrukngantuk Sure, I will check this. thanks sir... Edited: in `electron-builder.json` I edited the target to snap, it's done compiling and installing, but when running it's failed to run, here is the log: ``` /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Documents': No such file or directory ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Desktop': No such file or directory ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Downloads': No such file or directory ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Music': No such file or directory ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Pictures': No such file or directory ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Videos': No such file or directory ln: failed to create symbolic link '/root/snap/electerm/x2/snap/electerm/x2/Templates': No such file or directory Gtk-Message: Failed to load module "canberra-gtk-module" Gtk-Message: Failed to load module "canberra-gtk-module" error parsing $HOME/.ssh/config maybe no $HOME/.ssh/config, but it is ok no user config, but it is ok no ../../install-src file no install-src file [16:12:38.441] [info] App starting... no /root/snap/electerm/x2/.config/electerm-config.js but it is ok no /root/snap/electerm/x2/.config/electerm-user-config.json but it is ok no electerm-localstorage.json, but it is ok. Trace/breakpoint trap (core dumped) ``` sir @zxdong262 , how to disable build for rpm in your source code? beacuse it's return error for me in ubuntu 1804, Edited: Fixed with remove rpm in `target` section `electron-builder.json`
Author
Owner

@zxdong262 commented on GitHub (Jan 6, 2019):

@petrukngantuk Hi,

I do not know what is going on, I never used snap yet, but I will try. I will let you know when updated.

<!-- gh-comment-id:451725053 --> @zxdong262 commented on GitHub (Jan 6, 2019): @petrukngantuk Hi, I do not know what is going on, I never used snap yet, but I will try. I will let you know when updated.
Author
Owner

@zxdong262 commented on GitHub (Jan 24, 2019):

Hi @petrukngantuk, the newest release already included snap, you can try it.

<!-- gh-comment-id:457073409 --> @zxdong262 commented on GitHub (Jan 24, 2019): Hi @petrukngantuk, the newest release already included snap, you can try it.
Author
Owner

@zxdong262 commented on GitHub (Jan 24, 2019):

Hi @petrukngantuk, I am just wondering why you prefer snap, seems the pack is much bigger than other release types, more than twice the size of .dep package.

<!-- gh-comment-id:457074023 --> @zxdong262 commented on GitHub (Jan 24, 2019): Hi @petrukngantuk, I am just wondering why you prefer snap, seems the pack is much bigger than other release types, more than twice the size of `.dep` package.
Author
Owner

@kholisrag commented on GitHub (Jan 24, 2019):

Hi @petrukngantuk, I am just wondering why you prefer snap, seems the pack is much bigger than other release types, more than twice the size of .dep package.

I want to integrate it to another app, snap it's like container(docker)

<!-- gh-comment-id:457140018 --> @kholisrag commented on GitHub (Jan 24, 2019): > Hi @petrukngantuk, I am just wondering why you prefer snap, seems the pack is much bigger than other release types, more than twice the size of `.dep` package. I want to integrate it to another app, snap it's like container(docker)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#617
No description provided.