Last active
January 9, 2026 03:09
-
-
Save goldstar611/c4bf31dca3b50ee6bb7336af3570201f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| # Getting snapcraft and dependencies | |
| # | |
| # In a container (where root isn't really root) | |
| # apt install git python3-pip gnome-keyring curl | |
| # cd /root | |
| # git clone https://github.com/snapcore/snapcraft | |
| # cd snapcraft/ | |
| # python3 -m venv --system-site-packages venv/ | |
| # source venv/bin/activate | |
| # pip install . | |
| # mkdir -p /usr/share/snapcraft/schema | |
| # mkdir /usr/share/snapcraft/extensions | |
| # mkdir /usr/share/snapcraft/keyrings | |
| # crontab schedule | |
| # | |
| # 0 */4 * * * /usr/bin/dbus-run-session -- /root/snap_edge_2_stable.sh | |
| #!/bin/bash | |
| { | |
| echo "test" | gnome-keyring-daemon --unlock | |
| #/root/snapcraft/venv/bin/snapcraft login | |
| #/root/snapcraft/venv/bin/snapcraft whoami | |
| echo Y | SNAPCRAFT_HAS_TTY=y /root/snapcraft/venv/bin/snapcraft promote --from-channel edge --to-channel stable chirp-snap | |
| } > /root/snapcraft.log 2>/root/snapcraft.err |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment