Skip to content

Commit

Permalink
Thorium BUILD instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
panaC committed Nov 28, 2024
1 parent 589627f commit 1c7eaf7
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions THORIUM_BUILD.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 1c7eaf7

Please sign in to comment.