How to get the latest chromium snap package

Moderator: Forum moderators

Post Reply
watchdog
Posts: 85
Joined: Fri Dec 13, 2019 4:32 pm
Has thanked: 14 times
Been thanked: 12 times

How to get the latest chromium snap package

Post by watchdog »

With:

Code: Select all

curl -H 'Snap-Device-Series: 16' http://api.snapcraft.io/v2/snaps/info/chromium >> chromium.info
you can get the download link of the snap package. Download it using wget. Rename it as chromium.sfs. Click on it and you have access to its content which you can put in chromium dir. Rename the .png icon as .DirIcon and put in it the following AppRun script:

Code: Select all

#!/bin/sh
LAUNCHDIR="$(dirname "$(readlink -f "$0")")"
export SNAP="$LAUNCHDIR"
export SNAP_ARCH="amd64"
export SNAP_VERSION="3" # for example (get the version from the original snap)
export SNAP_USER_DATA="$HOME/snap1"
chown -R spot:spot $HOME/snap1

run-as-spot $LAUNCHDIR/command-chromium.wrapper --disable-infobars "$@"
/root/snap1 is the config dir with the profile as spot user. Click on the dir to launch chromium: working in ScPup64.
User avatar
wiak
Posts: 4244
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 70 times
Been thanked: 1257 times
Contact:

Re: How to get the latest chromium snap package

Post by wiak »

Or see this page from old forum (from google search cache):

http://webcache.googleusercontent.com/s ... clnk&gl=nz

Peebee mentioned doing similar there (without providing details how), and I provided details on the way I do it thus, which should work for ANY snap package, not just chromium - I gave additional example for cherrytree (since gtk+2 version has otherwise become deprecated):
PostPosted: Tue 23 Jun 2020, 06:14 Post subject:
I do it this way:

https://unix.stackexchange.com/question ... -with-wget

or did...

Much easier though is just to install snapd on a system that makes it easy to do that. As it happens it only takes minutes to install snap onto WeeDogLinux Arch64. You userswitch to user weedog and simply follow the instructions given here:

https://snapcraft.io/docs/installing-snap-on-arch-linux

WeeDogLinux Arch64 has all the prerequisites (such as git installed by default) and the git repo cloned for snap is very small anyway (the download isn't but doesn't take more than a few minutes anyway even on my very rural slow broadband connection...

Then once you reboot and: sudo systemctl restart snapd (or if root user no sudo required) you can download any snap from the snap store you want and later muck about with it for trying to use in Puppy or wherever...

For example:

sudo snap download cherrytree

then rename the fetched cherrytree_22.snap to cherrytree_22.sfs and you have your sfs to play with.

Of course, if you don't want to ease the issue of downloading via snapd installed system, the curl followed by wget method described in that unix.stackexchange.com page is one way to go. Best to script that or make a user-friendly yad or gtkdialog GUI for that too (I'd suggest yad - since gtkdialog is going to die sooner or later).

The packagename.info file that the curl line downloads is one big annoying-to-read blob, though simply loading that in geany allows you to see the various https:// links for the .snap you can then use to wget -c https://package_whatever.snap or it can be filtered via sed/awk for example, though I've never bothered. The 'jq' program mentioned in that link, certainly makes the info file more readable (parses it) and jq is a tiny download (less than a couple of MB) on WeeDogLinux Arch 64 anyway.

wiak
Thanks for reminding me about this otherwise lost information watchdog.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

Post Reply

Return to “Browsers”