Skip to content

Commit af4ee3b

Browse files
committed
docs: improved README
Also changed `cache` folder to `_cache`
1 parent c4bebaa commit af4ee3b

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

APPw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ load_config "./$APP_DIR/bootstrap.cfg"
3535
# -----------------------------
3636

3737
# 3. Define the remaining path variables using the (potentially overridden) APP_NAME/UPDATE_PERIOD
38-
CACHE_DIR="$APP_HOME/cache"
38+
CACHE_DIR="$APP_HOME/_cache"
3939
BIN_DIR="$APP_HOME/bin"
4040
APP_EXE="$BIN_DIR/$APP_NAME"
4141
ARCHIVE_FILE="$CACHE_DIR/release.tgz"

APPw.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ call :LOAD_CONFIG ".\%APP_DIR%\bootstrap.cfg"
171171
rem -----------------------------
172172

173173
rem 3. Define the remaining path variables using the (potentially overridden) NAME/UPDATE_PERIOD
174-
set "CACHE_DIR=%APP_HOME%\cache"
174+
set "CACHE_DIR=%APP_HOME%\_cache"
175175
set "BIN_DIR=%APP_HOME%\bin"
176176
set "APP_EXE=%BIN_DIR%\%APP_NAME%.cmd"
177177
set "ARCHIVE_FILE=%CACHE_DIR%\release.zip"

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,36 @@ UPDATE_PERIOD=7
6464

6565
* **Requirements:** Modern Windows (10/11) with `curl` and `tar` available in the PATH.
6666

67+
## **Preparation**
68+
69+
You will need a hosting location for your application’s release archive (a `.tgz` file for the Bash script, and a `.zip` or `.tgz` file for the Batch script). This archive can contain any files you want but it should have at least the two script files in a `bin` folder.
70+
This is the minimum contents of the archive:
71+
72+
```
73+
bin/
74+
APP
75+
APP.cmd
76+
```
77+
78+
but you can also include additional files and folders as needed. The following is an example of a more complete archive structure:
79+
80+
```
81+
bin/
82+
APP
83+
APP.cmd
84+
other_executable_files
85+
lib/
86+
supporting_libraries
87+
docs/
88+
documentation_files
89+
README.md
90+
```
91+
92+
**IMPORTANT:**
93+
1. **Permissions:** Ensure that the `APP` file inside the `bin` folder has executable permissions set (especially for Linux/macOS).
94+
2. **Naming:** It is required that scripts in the `bin` are named the same as the variable `NAME` found inside them (see [Usage](#usage) below).
95+
3. **No conflicts:** Do _not_ include the `bootstrap.cfg` file inside the archive, as it would override user configurations on each update. And no folder or file named `_cache` should exist either.
96+
6797
## **Usage**
6898

6999
1. **Configure:** Edit the `NAME` and `DOWNLOAD_URL` variables (and possibly `APP_DIR` if you want a different name than the default) at the top of both scripts (`APPw` and `APPw.bat`).

0 commit comments

Comments
 (0)