Giter VIP home page Giter VIP logo

Comments (2)

ivan-hc avatar ivan-hc commented on September 28, 2024 1

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.

ivan-hc avatar ivan-hc commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.