Guided wizard that zips a folder into a runnable .APP.
No showcase clip yet.
PACKAGEPACKAGE
WHAT IT DOES
PACKAGE pkg$, folder$ zips the contents of a folder into a package file (ZIP store). Paths inside the archive are relative to that folder. folder$ must contain MAIN.BAS.
If pkg$ already exists at the prompt, PACKAGE asks "File exists, overwrite? [Y/n]". Empty or Y overwrites, and N leaves the file. From a running program a collision is ?FILE EXISTS. RUN "name.app" mounts the zip read-only as B: and runs MAIN.BAS.
FEATURES
Wizard
Type PACKAGE with no arguments at the prompt to open the authoring wizard as a modal dialog. Step 1 chooses a folder: subfolders of the current folder, and "." for the current folder. Entries without MAIN.BAS are flagged and cannot be packaged. Step 2 names the package, defaulting to folder.APP. Title and author are optional and are stored in PACKAGE.INF inside the archive. Step 3 confirms and writes the .APP in the current folder.
Running a package
RUN "name.app" mounts the zip read-only as B: and runs MAIN.BAS. B: is not listed by DRIVE and cannot be selected in FILES or CHDIR at the prompt. After RUN, EDIT does not open the zip file. PACKAGE with arguments still works from a program. Use CHDIR first to reach another folder or drive.
KEYS
Up / DownMove in the wizard.
EnterSelect or advance.
TabMove between fields in step 2.
EscGo back, or cancel from step 1 and restore the prompt.