Subversion Repositories SvarDOS

Rev

Rev 172 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 172 Rev 217
Line 1... Line 1...
1
Package files provide an easy way to manage software on svarDOS.
1
Package files provide an easy way to manage software on SvarDOS.
2
 
2
 
3
 
3
 
4
*** Package filenames ***
4
*** Package filenames ***
5
 
5
 
6
Packages names must follow some basic rules. They shall be max. 8 letters long (but should not be too short either, since a 1 or 2-letters package name might be confusing), and must not be composed of characters other than a-b, 0-9 and '_'. This for backward compatibility with short file names (8+3) and ISO 9660 file systems (used on CDROMs). The package filename is always followed by the .ZIP extension.
6
Packages names must follow some basic rules. They shall be max. 8 letters long (but should not be too short either, since a 1 or 2-letters package name might be confusing), and must not be composed of characters other than a-b, 0-9 and '_'. This for backward compatibility with short file names (8+3) and ISO 9660 file systems (used on CDROMs). The package filename is always followed by the .ZIP extension.
7
 
7
 
8
 
8
 
9
*** Package files ***
9
*** Package files ***
10
 
10
 
11
Svarog386 uses ZIP files as its package file format. This format has been chosen because ZIP files under DOS have become the de facto way to distribute collections of files. Also, the ZIP file format is well documented, well supported, and in the public domain.
11
SvarDOS uses ZIP files as its package file format. This format has been chosen because ZIP files under DOS have become the de facto way to distribute collections of files. Also, the ZIP file format is well documented, well supported, and in the public domain.
12
 
12
 
13
Here below is the RECOMENDED command line that can be used to create a package for a program named EXAMPLE using info-zip:
13
Here below is the RECOMENDED command line that can be used to create a package for a program named EXAMPLE using info-zip:
14
 
14
 
15
  ZIP -9 -r -k EXAMPLE.ZIP subdir1 subdir2 ... subdirN
15
  ZIP -9 -r -k EXAMPLE.ZIP subdir1 subdir2 ... subdirN
16
 
16
 
17
If you are using 7za to create your packages, then use this:
17
If you are using 7za to create your packages, then use this:
18
 
18
 
19
  7za a -mm=deflate -mx=9 -tzip EXAMPLE.ZIP subdir1 subdir2 ... subdirN
19
  7za a -mm=deflate -mx=9 -tzip EXAMPLE.ZIP subdir1 subdir2 ... subdirN
20
 
20
 
21
Note, that 7za allows to use different compression algorithms. The Svarog386 package manager (FDNPKG) supports two compression methods: Deflate and LZMA. Usually LZMA provides better compression than Deflate, however it is not recommended for general use because LZMA decompression requires much more memory than Deflate. LZMA decompression needs about 24MiB of memory, which is more than the total available memory on most DOS systems. LZMA might be used for specific packages that assume high-end systems (for example: 3D games, etc). In any case, it's always safer to stick with Deflate.
-
 
22
 
-
 
23
Nevertheless, if you wish to create a package using LZMA, use this:
-
 
24
 
-
 
25
  7za a -mm=lzma -tzip EXAMPLE.ZIP subdir1 subdir2 ... subdirN
-
 
26
 
-
 
27
 
21
 
28
*** Package directory structure ***
22
*** Package directory structure ***
29
 
23
 
30
A package archive includes both binary and source code. The installer can choose to not unpack sources at install time.
24
A package archive includes both binary and source code. The installer can choose to not unpack sources at install time.
31
 
25