Δημοσιεύτηκε: 31 Μάιος 2011, 03:18
από medigeek
Να σημειώσω ότι ο kalopc άλλαξε το σύνδεσμο και το αρχείο είναι τώρα στο http://www.sfygmosplayer.gr :)
Δεν δοκίμασα να εκτελέσω το κυρίως πρόγραμμα.

Το πρόγραμμα δημιουργήθηκε με makeself:
Κώδικας: Επιλογή όλων
$ strings SfygmosPlayer.run | head -n 10
#!/bin/sh
# This script was generated using Makeself 2.1.5
CRCsum="574007748"
MD5="a41b856615b998479b90088f78c99f32"
TMPROOT=${TMPDIR:=/tmp}
label="Software-Package"
script="./SfygmosPlayer"
scriptargs=""
targetdir="SfygmosPlayer"
filesizes="16070415"


Κώδικας: Επιλογή όλων
$ ./SfygmosPlayer.run --help
Makeself version 2.1.5
1) Getting help or info about ./SfygmosPlayer.run :
./SfygmosPlayer.run --help Print this message
./SfygmosPlayer.run --info Print embedded info : title, default target directory, embedded script ...
./SfygmosPlayer.run --lsm Print embedded lsm entry (or no LSM)
./SfygmosPlayer.run --list Print the list of files in the archive
./SfygmosPlayer.run --check Checks integrity of the archive

2) Running ./SfygmosPlayer.run :
./SfygmosPlayer.run [options] [--] [additional arguments to embedded script]
with following options (in that order)
--confirm Ask before running embedded script
--noexec Do not run embedded script
--keep Do not erase target directory after running
the embedded script
--nox11 Do not spawn an xterm
--nochown Do not give the extracted files to the current user
--target NewDirectory Extract in NewDirectory
--tar arg1 [arg2 ...] Access the contents of the archive through the tar command
-- Following arguments will be passed to the embedded script


Κώδικας: Επιλογή όλων
$ ./SfygmosPlayer.run --info
Identification: Software-Package
Target directory: SfygmosPlayer
Uncompressed size: 62420 KB
Compression: gzip
Date of packaging: Tue Apr 26 17:20:42 EEST 2011
Built with Makeself version 2.1.5 on
Build command was: /opt/makeself/makeself.sh \
"/home/michael/Desktop/SfygmosPlayer" \
"SfygmosPlayer.run" \
"Software-Package" \
"./SfygmosPlayer"
Script run after extraction:
./SfygmosPlayer
SfygmosPlayer will be removed after extraction


Το πακέτο έχει το wine, αποσυμπιέζεται μαζί με το πρόγραμμα και τρέχει το (windows;) πρόγραμμα μέσω του wine:
Κώδικας: Επιλογή όλων
$ ./SfygmosPlayer.run --list
Target directory: SfygmosPlayer
drwxr-xr-x michael/michael 0 2011-04-26 15:27 ./
-rwxr-xr-x michael/michael 814 2011-04-26 15:11 ./SfygmosPlayer
drwxr-xr-x michael/michael 0 2011-04-26 16:13 ./.wine/
-rw-r--r-- michael/michael 7725 2010-11-30 14:56 ./.wine/generic.ppd
drwxr-xr-x michael/michael 0 2010-11-30 14:56 ./.wine/lib/
-rwxr-xr-x michael/michael 1229572 2010-11-30 14:56 ./.wine/lib/libwine.so.1.0
lrwxrwxrwx michael/michael 0 2011-04-26 15:41 ./.wine/lib/libwine.so -> libwine.so.1.0
drwxr-xr-x michael/michael 0 2010-11-30 14:56 ./.wine/lib/wine/
-rwxr-xr-x michael/michael 136092 2010-11-30 14:56 ./.wine/lib/wine/msvcirt.dll.so
-rwxr-xr-x michael/michael 77848 2010-11-30 14:56 ./.wine/lib/wine/wow32.dll.so
-rwxr-xr-x michael/michael 80748 2010-11-30 14:56 ./.wine/lib/wine/winedevice.exe.so
-rwxr-xr-x michael/michael 74916 2010-11-30 14:56 ./.wine/lib/wine/xinput1_2.dll.so
[...]


Το makeself εκτελεί το " ./SfygmosPlayer" που εκτελεί το αρχείο:
Κώδικας: Επιλογή όλων
"$rootdir/.wine/bin/wine" "$rootdir/.wine/drive_c/Program Files/SklavosSoftware/SfygmosPlayer/Sfygmos Player.exe" "$@"