PureBasic 3.81 Beta 1 for Windows

Developed or developing a new product in PureBasic? Tell the world about it.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Post 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]
Christos
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Post by Doobrey »

Fred wrote:I will probably release a new amiga just after the linux one.
WOOOOOOOOHOOOOOOOOOOOOOOOOOOO
:D :D :D :D :D :D :D
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post 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).
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
Saboteur
Enthusiast
Enthusiast
Posts: 272
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Post 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
:( :( :(
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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
Saboteur
Enthusiast
Enthusiast
Posts: 272
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Post by Saboteur »

A bug? What is a bug? I had never seen a bug!! 8O
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
V2
User
User
Posts: 53
Joined: Wed Oct 15, 2003 4:53 pm

Post 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)
V2
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post 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
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Post 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.
Eastgrove
New User
New User
Posts: 6
Joined: Thu Jun 19, 2003 1:10 am
Location: Östersund, Sweden.

Post 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?
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Timo:

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

Regards
Einander
Post Reply