need help with updates for my program
Posted
#1
(In Topic #188)
Enthusiast

The reason I am not doing this with "dnf" is my software is not in repository.
My thought is to do this in the program with a check for update option in the menu. I am open to other easy ideas or a way to move the downloaded file into possibly protected areas without having to modify the user system. I would rather not change the sudo config to allow the move command to operate without password.
I am open to other methods if they are not too tough. I do have a web host for the files if that matters.
Posted
Guru

You just need to point to where the .tar (not .tar.gz) file of your updated Gambas program is stored and also where the '.gambas' file to update is.
Get your code to pull down the file, as a .tar file of your program, from the web into a folder. The program stores the date of the file so will know it it has changed.
Get your program to call AutoUpdater (without the -s switch), making sure your program is not doing something important as AutoUpdater will 'Kill' your program if an update is required.
Read 'Help' in the program. I use this program at work on a daily basis and it works very well. It is very fast, it even stores your old programs and creates a log. Any issues let me know.
Posted
Enthusiast

I have also been exploring creating a repo for my stuff but I do not have root access to the web host I would use. so createrepo will not help me.
Posted
Guru

If you use Dropbox or similar you won't need a 'repo'.
Posted
Enthusiast

Posted
Guru

Can you post the program here so we can see how it might be done?
Posted
Enthusiast

You are using a very simple solution that I like but still can't get either program to take it. Using fedora 28 if that helps you at all. Also used terminal to put in the command with the echo and same result.
Posted
Enthusiast

the subtle difference is the semicolon after the -S seems to make it work.
Posted
Guru

I thought 'That's interesting' so I installed Fedora 28 and Gambas. I installed 'Sudo' and had all sorts of problems as my name was not in the 'sudoers' file and I was going to be reported!..your sudo program was missing the semicolon.
Anyway once I had sorted that I had no problem as all, I did not need to add a semicolon so I am not sure why you have had to.
Posted
Enthusiast

1 guest and 0 members have just viewed this.



