Comments (2)
OK, I think I have solved, from now the version installed will be compared with the last update, copy paste the following new updater in your AM-updater script and made it executable
#!/usr/bin/env bash
APP=duckstation
REPO="stenzek/duckstation"
version0=$(cat /opt/$APP/version)
version=$(wget -q https://api.github.com/repos/$REPO/releases/latest -O - | grep -w -v i386 | grep -w -v i686 | grep -w -v arm64 | grep -w -v armv7l | grep browser_download_url | grep -i appimage | cut -d '"' -f 4 | head -1)
updatedat=$(wget -q https://api.github.com/repos/$REPO/releases/latest -O - | grep updated_at | cut -d '"' -f 4 | head -1)
if [ $updatedat = $version0 ]; then
echo "Update not needed!"
else
notify-send "A new version of $APP is available, please wait"
mkdir /opt/$APP/tmp
cd /opt/$APP/tmp
wget $version
if ls . | grep mage; then
cd ..
if test -f ./tmp/*mage; then rm ./version
fi
echo $updatedat >> ./version
mv --backup=t ./tmp/*mage ./$APP
chmod a+x /opt/$APP/$APP
rm -R -f ./tmp ./*~
fi
notify-send "$APP is updated!"
fi
Now I'll go to replace the existing installer.
from am.
I'm looking for update methods (including appimageupdatetool) but nothing works. Having a common linear URL is a problem in this case.
I don't know how the app works and if it is somenthing that can receive updates automatically or something.
In the meantime I suggest to use the option --rollback
to download a newer version if you know that it is available. With this new option you can select whatever you want from a menu (NOTE: the AM-updater must be in place to use the option --rollback
).
Maybe I can get track of the last update to that branch to give you the new version.
from am.
Related Issues (20)
- Parallel updates? HOT 18
- Apps versions shown also elsewhere HOT 39
- am -f sort by name or size HOT 3
- am -l
- am -q
- Add qemu AppImage HOT 1
- Better graphical visualization of install progress HOT 119
- Add AppMan AppImage (AM) HOT 20
- Improve help message and arguments HOT 15
- New domain and new website available HOT 19
- update script order HOT 5
- My saga installing Krita HOT 63
- Segfault while installing Cursor HOT 19
- Fedora 40 KDE HOT 130
- always says im not in sudoers and then refuzes to uninstall HOT 1
- Why do you guys push drastic changes without fully considering the impact? HOT 29
- chown: invalid group: ‘:sudo’ 6.6.3-1... HOT 1
- AM Playing Up after Update HOT 15
- New error messages. HOT 3
- Installer showing errors. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from am.