single-file-cli 2.2.0 → 2.2.2
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/.github/workflows/publish.yml +5 -2
- package/Dockerfile +3 -1
- package/deno.json +1 -1
- package/lib/version.js +1 -1
- package/options.js +3 -3
- package/package.json +1 -1
|
@@ -108,12 +108,13 @@ jobs:
|
|
|
108
108
|
TAG_NAME: ${{ github.event.release.tag_name }}
|
|
109
109
|
run: |
|
|
110
110
|
version="${TAG_NAME#v}"
|
|
111
|
+
echo "RELEASE_VERSION=$version" >> "$GITHUB_ENV"
|
|
111
112
|
for attempt in $(seq 1 40); do
|
|
112
|
-
available=$(npm view single-file-cli version 2>/dev/null || true)
|
|
113
|
+
available=$(npm view "single-file-cli@$version" version 2>/dev/null || true)
|
|
113
114
|
if [ "$available" = "$version" ]; then
|
|
114
115
|
exit 0
|
|
115
116
|
fi
|
|
116
|
-
echo "npm
|
|
117
|
+
echo "npm does not serve $version yet"
|
|
117
118
|
sleep 30
|
|
118
119
|
done
|
|
119
120
|
echo "::error::timed out waiting for npm to serve $version"
|
|
@@ -135,6 +136,8 @@ jobs:
|
|
|
135
136
|
uses: docker/build-push-action@v6
|
|
136
137
|
with:
|
|
137
138
|
push: true
|
|
139
|
+
build-args: |
|
|
140
|
+
VERSION=${{ env.RELEASE_VERSION }}
|
|
138
141
|
tags: |
|
|
139
142
|
${{ secrets.DOCKER_USERNAME }}/singlefile:latest
|
|
140
143
|
${{ secrets.DOCKER_USERNAME }}/singlefile:${{ github.event.release.tag_name }}
|
package/Dockerfile
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
FROM node:24-alpine
|
|
2
2
|
|
|
3
|
+
ARG VERSION=latest
|
|
4
|
+
|
|
3
5
|
RUN apk add --no-cache chromium ttf-freefont font-noto-emoji
|
|
4
6
|
|
|
5
7
|
USER node
|
|
6
8
|
|
|
7
9
|
WORKDIR /usr/src/app
|
|
8
10
|
|
|
9
|
-
RUN npm install --omit=dev single-file-cli
|
|
11
|
+
RUN npm install --omit=dev single-file-cli@${VERSION}
|
|
10
12
|
|
|
11
13
|
ENTRYPOINT [ \
|
|
12
14
|
"npx", \
|
package/deno.json
CHANGED
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "2.2.
|
|
1
|
+
export const version = "2.2.2";
|
package/options.js
CHANGED
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
import { version } from "./lib/version.js";
|
|
25
25
|
import { Deno } from "./lib/deno-polyfill.js";
|
|
26
26
|
|
|
27
|
+
const { args, build, exit } = Deno;
|
|
28
|
+
|
|
27
29
|
const USAGE_TEXT = `single-file [url] [output]
|
|
28
30
|
|
|
29
31
|
Positionals:
|
|
@@ -59,7 +61,7 @@ const OPTIONS_INFO = [{
|
|
|
59
61
|
"browser-debug": { description: "Enable debug mode", type: "boolean" },
|
|
60
62
|
"browser-arg": { description: "Argument passed to the browser", type: "string[]", alias: "browser-argument" },
|
|
61
63
|
"browser-args": { description: "Arguments provided as a JSON array and passed to the browser", type: "string" },
|
|
62
|
-
"browser-single-process": { description: "Run the browser as a single process", type: "boolean", defaultValue:
|
|
64
|
+
"browser-single-process": { description: "Run the browser as a single process (enabled by default on Windows only, current browsers on other platforms do not support this mode)", type: "boolean", defaultValue: build.os == "windows" },
|
|
63
65
|
"browser-start-minimized": { description: "Minimize the browser", type: "boolean" },
|
|
64
66
|
"browser-ignore-insecure-certs": { description: "Ignore HTTPs errors", type: "boolean" },
|
|
65
67
|
"browser-remote-debugging-URL": { description: "Remote debugging URL", type: "string" }
|
|
@@ -206,8 +208,6 @@ const OPTIONS_INFO = [{
|
|
|
206
208
|
"version": { description: "Print the version number and exit.", type: "boolean" },
|
|
207
209
|
}];
|
|
208
210
|
|
|
209
|
-
const { args, exit } = Deno;
|
|
210
|
-
|
|
211
211
|
const CRAWL_LINKS_DEPENDENT_OPTIONS = {
|
|
212
212
|
crawlInnerLinksOnly: "--crawl-inner-links-only",
|
|
213
213
|
crawlNoParent: "--crawl-no-parent",
|