After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 470886 - Script for execute on win and on linux with double click
Script for execute on win and on linux with double click
Status: RESOLVED FIXED
Product: chronojump
Classification: Other
Component: chronojump
unspecified
Other All
: Normal blocker
: ---
Assigned To: Xavier de Blas
Xavier de Blas
Depends on:
Blocks:
 
 
Reported: 2007-08-27 23:11 UTC by Xavier de Blas
Modified: 2007-09-05 13:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier de Blas 2007-08-27 23:11:55 UTC
Write an script that executes chronojump using double click. On windows and linux, search for mono and manage path for executing it. on win: a .bat; on linux: a .sh

win script started:

http://lists.ximian.com/pipermail/mono-list/2007-August/036044.html

It need to be mkbundled for embedding mono, and adapted to a new release file structure. Something like this:

release two compressed files:chronojump-06.zip and chronojump-06.tgz both with the same content. When uncompressed:

chronojump-06/
    windows/
        chronojump.bat
        chronojump_mini.bat
        utils/
            convert_database.bat (probably)
            sqlite.exe (probably)
            sqlite3.exe (probably)
    linux/
         chronojump.sh
         chronojump_mini.sh
    data/
        chronojump.prg (main program, called by the scripts on win, lin directories)
        chronojump_mini.prg
        NPlot dlls (are they different for win and linux?)
        sqlite dlls (for windows)
        
The bat files on win, and the .sh files on linux: 1)find mono; 2)fix the path; 3) run the programs

write also a script that creates the tgz and the zip according to this structure.
Comment 1 Xavier de Blas 2007-09-03 11:44:32 UTC
The script cannot be run. I tried to bundle it with no success. 

Probably there's a need to do the script in other language and compile it natively. Probably juanfer can help on this.

Other option is write a .bat, it can be prepared but not ended. For exemple, this works for me:

chronojump.bat:
"C:\Archivos de programa\Mono-1.2.5\bin\mono.exe" "chronojump.prg"

We can ask the user to edit this line (for point to mono.exe), or ask user to install mono in a desired directory

Probably the .bat can be created by a native program

Comment 2 Xavier de Blas 2007-09-04 22:21:14 UTC
Created a batch install script that creates the execute batch files.

More info here and here:

http://mail.gnome.org/archives/chronojump-devel-list/2007-September/msg00009.html
http://lists.ximian.com/pipermail/mono-list/2007-September/036171.html

On svn:
-create_release.sh
-installChronojumpWindows.bat
-regread.bat

http://svn.gnome.org/viewcvs/chronojump/trunk/

check if there are any license problems on regread.bat, and rewrite it if needed
Comment 3 Xavier de Blas 2007-09-05 13:47:03 UTC
Done, see chronojump.bat, chronojump_mini.bat and create_release.sh on the svn trunk