From 1c7eaf7557aadeb165396f6e18e41eedbe2c678d Mon Sep 17 00:00:00 2001
From: Pierre Leroux
Date: Thu, 28 Nov 2024 14:16:00 +0100
Subject: [PATCH] Thorium BUILD instruction
---
THORIUM_BUILD.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 THORIUM_BUILD.md
diff --git a/THORIUM_BUILD.md b/THORIUM_BUILD.md
new file mode 100644
index 0000000000000..1c0150d9d4843
--- /dev/null
+++ b/THORIUM_BUILD.md
@@ -0,0 +1,46 @@
+
+```
+git checkout master2
+
+# do some change
+
+git commit -a
+
+COMMIT_HASH=$(git rev-parse HEAD)
+
+git checkout --orphan build
+
+git rm -r --cached .
+
+npm i && npm run build
+
+git add build/gh-pages/build build/gh-pages/web build/types -f
+
+cat << EOF > package.json
+{
+ "name": "pdf.js",
+ "type": "module",
+ "types": "build/types/src/pdf.d.ts",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/edrlab/pdf.js.git"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "scripts": {
+ },
+ "license": "Apache-2.0"
+}
+EOF
+
+git add package.json
+
+git commit -m "build $COMMIT_HASH"
+
+git push origin build
+
+git checkout master2 -f
+
+git prune
+```