Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

890679 Posts in 33510 Topics- by 24750 Members - Latest Member: ednazag

June 17, 2013, 11:37:18 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)Auto updaters?
Pages: 1 [2]
Print
Author Topic: Auto updaters?  (Read 945 times)
Critias
Level 0
*


View Profile
« Reply #15 on: July 10, 2012, 04:40:10 PM »

How well does the mac and linux versions work?

They don't. I would not be surprised if you had to maintain a separate installer for each operating system you wish to support.

Someone on StackOverflow has a similar question: http://stackoverflow.com/questions/3904449/installation-for-mac-and-linux-on-a-windows-machine

The answer to that question points to this page which suggests you may have to shell out some cash to get the features you want: http://en.wikipedia.org/wiki/List_of_installation_software

Best of luck.
Logged
tametick
Level 3
***


Could take weeks, sir!


View Profile WWW Email
« Reply #16 on: July 10, 2012, 10:25:42 PM »

How well does the mac and linux versions work?

They don't. I would not be surprised if you had to maintain a separate installer for each operating system you wish to support.

I know, that was a joke.

I've already decided to write my own in c#/mono.
Logged

SuperDisk
Level 1
*



View Profile Email
« Reply #17 on: July 11, 2012, 09:58:35 AM »

For a pretty unimportant application (not a lot of people use it), I actually wrote mine in Windows Batch and GNU Wget for Windows. It was really easy.

Code:
@echo off

if exist remoteversion.vfe del remoteversion.vfe


rem Download the versionfile, and if different than local versionfile, redownload program.

set /p localversion=<localversion.vfe
set /a localversion=%localversion%

call wsocket -t 20 http://superdisk.x10.mx/MCSkin2D/remoteversion.vfe
set /p remoteversion=<remoteversion.vfe
set /a remoteversion=%remoteversion%

if %remoteversion% gtr %localversion% (
    msg * Your Version: %localversion%, Newest Version: %remoteversion%   You are out of date. Press OK to update your version.
    msg * This will take a while. Please wait.
    del localversion.vfe
    ren remoteversion.vfe localversion.vfe
    del ..\library.zip
    cd ..
    call Wsocket\wsocket -t 20 http://superdisk.x10.mx/MCSkin2D/library.zip
    msg * You are now up to date!
    ) else (
    del wsocket\remoteversion.vfe
    )

Don't ask me why I renamed Wget to Wsocket. :\
Logged
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic