Page 2 of 2

Posted: Tue Dec 02, 2003 9:17 pm
by Fred
Franky wrote:Hi, what about the Spingadgetbug, when do you want to fix it?
Should be fixed. Could you test the following lib ? : www.purebasic.com/beta/GadgetExtension

Posted: Tue Dec 02, 2003 10:08 pm
by plouf
Doobrey: I will probably release a new amiga just after the linux one.
i hope not to be drunked and read correct :D [/quote]

Posted: Tue Dec 02, 2003 10:41 pm
by Doobrey
Fred wrote:I will probably release a new amiga just after the linux one.
WOOOOOOOOHOOOOOOOOOOOOOOOOOOO
:D :D :D :D :D :D :D

Posted: Tue Dec 02, 2003 10:44 pm
by GPI
About the smart Update:

I download the complete zip-update-file and after the update i start the smartupdater.

I got the message, that i have newer files than in the update-version.

When i press then no, in the Window stand, that "You have this version installed, you don't need a update".

Multi-language-Support for the tool would be nice (in pb.pref is the selected language for the editor; btw: the visual Designer should also search in this file to get the default language of the user).

Posted: Tue Dec 02, 2003 11:07 pm
by freak
GPI wrote:About the smart Update:

I download the complete zip-update-file and after the update i start the smartupdater.

I got the message, that i have newer files than in the update-version.

When i press then no, in the Window stand, that "You have this version installed, you don't need a update".
I know about this one, still trying to figure out where the dates are messed
up.
GPI wrote:Multi-language-Support for the tool would be nice (in pb.pref is the selected language for the editor; btw: the visual Designer should also search in this file to get the default language of the user).
Multi-language is allready done, but it looks like Fred forgot to include
the catalog files with the update. :twisted: If they are there, it will use
the default language of the PB editor.

Thanks for the reports anyway..

Timo

Posted: Wed Dec 03, 2003 12:44 am
by Saboteur
Fred wrote:Try:

Code: Select all

Structure ColoredPoint Extends Point
  Color.l
EndStructure

MyPoint.ColoredPoint\x = 10
MyPoint\y = 100
MyPoint\Color = RGB(10,10,10)
What I get is: (debug and not debug)
MyPoint\x 10
MyPoint\y 657930
MyPoint\Color 657930
:( :( :(

Posted: Wed Dec 03, 2003 11:42 am
by Psychophanta
Saboteur; it's time the Bugs section to get full :twisted:

Fred wrote:
I will probably release a new amiga just after the linux one.
8O :o

Posted: Wed Dec 03, 2003 12:26 pm
by Saboteur
A bug? What is a bug? I had never seen a bug!! 8O

Posted: Wed Dec 03, 2003 1:44 pm
by V2
@Fred: Thanks - thumbs up! :D

@Freak: Thanks a lot! Is there any possibility to add 'plugins' to your updater so that I can add jaPBe, userlibs from purearea and the code archiv to it? What I mean is everyone (or better: the author of an extraordinary PB part/piece) can write his own plugin for your updater to download the newest available version of his program/code/library... :)

Now I go to celebrate - cheers 8)

Posted: Wed Dec 03, 2003 8:50 pm
by freak
V2 wrote:@Freak: Thanks a lot! Is there any possibility to add 'plugins' to your updater so that I can add jaPBe, userlibs from purearea and the code archiv to it? What I mean is everyone (or better: the author of an extraordinary PB part/piece) can write his own plugin for your updater to download the newest available version of his program/code/library... :)
I have given this some thought, and i think it would be a usefull thing to
be able to specify different download locations in a .prefs file, which would
make the tool able to update different packages at once.

But that would need some bigger changes to the tool, because it is too much
focused on the PB structure, and not that flexible, as it would need to be for
this task. This tool is not the only project i'm working on now, so i think i won't
do this right away.

I think it's also best to keep the tool like that for now, to see if it works well,
and to fix all bugs that may be found, than messing it all up now.

I will keep this in mind though...

Timo

Posted: Wed Dec 03, 2003 10:11 pm
by GPI
Maybe a very simple method:

Update-Tool download a simple ascii-file in the follow format:

Code: Select all

[Update1]
File="path\file"
Date=03.12.2003 - 10:00
; maybe a simple hex(date())
Url="blablabla\xyz.zip"
; or any other compressed format.
[Update2]
....
The updater should save follow:
Update-Inf-File
Installed-Path of installed Project

GPI

Posted: Thu Dec 04, 2003 2:32 am
by Doobrey
I`ve got my NetUpdate PB lib stuff working via an XML (in the loosest sense !) file..
Install paths can be strict as in "F:\MyProgram\InstallHere"
or relative to the computer, "ProgDir\InstallHere"

Looks like this ,although some newer options aren`t shown.

Code: Select all

<?xml version="1.0" ?> 
<update updver="0.5" app="My test heading" appver="0.05" date="1070129306" authcode="ad45Aom2VpAal3rLhvfy76fFB5gcotEr">
  <author website="http://www.mywebsite.com" email="myemail@ertertert" /> 
  <filelist>
    <file name="aspitranslate.pb">
       <fileinfo checksum="062d3d8f9fc99e946f81b030730fee07" date="1049062118" saveto="ProgDir\" http="http://dfgdfgdfgdfgdfg" /> 
    </file>
    <file name="amigraph.pb" priority="Optional">
      <fileinfo checksum="407ee360c75ef59fa2a98d95e13e7982" date="1033945556" saveto="Program\" http="http://www.blahblah.com" /> 
    </file>
    <file name="Somefile.dll" priority="High">
       <fileinfo checksum="f217ecd7e895717388239fc26bb074db" date="1065292768" saveto="Temp\" http="http://www.blahdy.com" />
       <msg>Critical update to fix problems on WindowXP</msg> 
    </file>
  </filelist>
  </update>
The actual lib commands work like the FileSystem lib..

Code: Select all

 
;## Example to only update "High Priority" bugfixes 
;## It cycles through the update file list, and removes unwanted updates.
;## GetUpdates() downloads the files in the list.

 If OpenUpdate(update_url.s)
   While ExamineUpdate()
      If UpdatePriority()<>#Update_Pri_High
         DeleteUpdate()
      Else
         Debug "New file>"+UpdateFileName()
      Endif
   Wend
   
   If GetUpdates(#Update_HideProgress)=0
     Debug "Update failed :(("
   Endif
   CloseUpdate()
 Endif


It`ll also do things like restart the app or restart Windows if needed, but only if the app and user allows it.
You can have as much or as little control as you want.

The simplest code you could use would be

Code: Select all

 If OpenUpdate(updateurl.s)
   GetUpdates()
   CloseUpdate()
 Endif


I`ve still got to do things like allowing the progress callback to be handled by the app if needed (for user created download GUIs instead of the built in one) , and handling of self extracting or self installing archives.
Still some way to go..and with Xmas coming up I doubt it`ll get anywhere close to beta before mid January..if only I could code as quick as Fred :wink:
I`ll be glad to hear any comments and suggestions about this.

Posted: Mon Dec 08, 2003 10:36 pm
by Eastgrove
Fred:
Doobrey: I will probably release a new amiga just after the linux one.
Cool! On what Amiga platforms, and to wich version?

Posted: Tue Dec 09, 2003 6:22 pm
by einander
Timo:

I vote your Smart Update for Best PB Tool of the Year!
Nice! :D

Regards
Einander