Last active
August 20, 2023 19:17
-
-
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 | |
# | |
# git clone https://github.com/snapcore/snapcraft | |
# cd snapcraft/ | |
# pip install . --break-system-packages | |
# pip install catkin-pkg --break-system-packages | |
# mkdir -p /usr/share/snapcraft/schema | |
# mkdir /usr/share/snapcraft/extensions | |
# mkdir /usr/share/snapcraft/keyrings | |
# apt install gnome-keyring | |
# crontab schedule | |
# | |
# 0 */4 * * * /usr/bin/dbus-run-session -- /root/snap_edge_2_stable.sh | |
{ | |
cd /root/chirp | |
git pull | |
git push -f goldstar611 master | |
cd /root | |
sleep 1800 # 30 min | |
echo "test" | gnome-keyring-daemon --unlock | |
#snapcraft login | |
#snapcraft whoami | |
echo Y | SNAPCRAFT_HAS_TTY=y /usr/local/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