create-disposabl-app 0.14.2 → 0.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/disposabl.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
8
8
|
import { Command, CommanderError } from "commander";
|
|
9
9
|
import * as p2 from "@clack/prompts";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "0.14.
|
|
11
|
+
var version = "0.14.3";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -3,19 +3,20 @@ set -euo pipefail
|
|
|
3
3
|
|
|
4
4
|
case "${1:?operation required}" in
|
|
5
5
|
prepare)
|
|
6
|
-
df -
|
|
6
|
+
df -Pk .
|
|
7
7
|
# Only disposable GitHub-hosted Linux runners. Keep Android, Java, Node,
|
|
8
8
|
# the checkout and dependency caches intact; these toolchains are unused.
|
|
9
9
|
if [[ "${GITHUB_ACTIONS:-}" == true && "${RUNNER_ENVIRONMENT:-}" == github-hosted && "${RUNNER_OS:-}" == Linux ]]; then
|
|
10
10
|
unused=(/usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL
|
|
11
|
-
/usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell
|
|
12
|
-
|
|
11
|
+
/usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell
|
|
12
|
+
/usr/local/share/vcpkg /home/linuxbrew)
|
|
13
|
+
du -sk -- "${unused[@]}" 2>/dev/null || true
|
|
13
14
|
sudo rm -rf -- "${unused[@]}"
|
|
14
15
|
fi
|
|
15
|
-
df -
|
|
16
|
+
df -Pk .
|
|
16
17
|
;;
|
|
17
18
|
check)
|
|
18
|
-
df -
|
|
19
|
+
df -Pk .
|
|
19
20
|
available=$(df -Pk . | awk 'END {print $4}')
|
|
20
21
|
if [[ ! "$available" =~ ^[0-9]+$ ]] || (( available < 25 * 1024 * 1024 )); then
|
|
21
22
|
echo '::error::Android native builds require at least 25 GiB free before prebuild. Use a runner with more disk capacity.' >&2
|
|
@@ -60,7 +60,7 @@ test("Android disk preparation only removes unused hosted-runner toolchains", ()
|
|
|
60
60
|
assert.equal(run("prepare").status, 0);
|
|
61
61
|
assert.equal(
|
|
62
62
|
readFileSync(calls, "utf8"),
|
|
63
|
-
"rm -rf -- /usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell\n",
|
|
63
|
+
"rm -rf -- /usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell /usr/local/share/vcpkg /home/linuxbrew\n",
|
|
64
64
|
);
|
|
65
65
|
assert.equal(run("check").status, 0);
|
|
66
66
|
assert.equal(run("check", { AVAILABLE: "26214400" }).status, 0);
|