Skip to content

Commit

Permalink
Emglken 0.7.0 has been published!
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousdannii committed Dec 14, 2024
1 parent c227df8 commit dc5dd01
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 27 deletions.
3 changes: 1 addition & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ const common_options = {
},
external: [
'*.woff2',
// Emglken now conditionally imports Node code, but esbuild complains about it
],
format: 'esm',
loader: {
Expand All @@ -176,7 +175,7 @@ const common_options = {
return {
contents: code.replace('var ENVIRONMENT_IS_WEB = typeof window == "object"', '')
.replace('var ENVIRONMENT_IS_WORKER = typeof importScripts == "function"', '')
.replace('var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string"', '')
.replace('var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"', '')
}
})
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"base32768": "^3.0.1",
"body-scroll-lock": "^4.0.0-beta.0",
"emglken": "^0.6.0",
"emglken": "^0.7.0",
"fflate": "^0.8.1",
"file-saver": "^2.0.5",
"glkaudio": "file:src/upstream/asyncglk/src/glkaudio/pkg",
Expand Down
2 changes: 1 addition & 1 deletion src/upstream/emglken
25 changes: 3 additions & 22 deletions tools/package-inform7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,6 @@ sed "s/DATE/$(date '+%Y.%-m')/" src/inform7/manifest.txt > 'dist/inform7/Parchme

cd dist/inform7

# Download the zip so we can check file hashes
if [ ! -f parchment-for-inform7.zip ]; then
echo "Downloading old parchment-for-inform7.zip"
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ "$BRANCH" = "testing" ]; then
curl -s -L https://github.com/curiousdannii/parchment-testing/raw/gh-pages/dist/inform7/parchment-for-inform7.zip -o parchment-for-inform7.zip
else
curl -s -L https://github.com/curiousdannii/parchment/raw/gh-pages/dist/inform7/parchment-for-inform7.zip -o parchment-for-inform7.zip
fi
fi

# Unzip the old zip
unzip -joq parchment-for-inform7.zip -d Parchment-old

diff Parchment Parchment-old >/dev/null
if [ $? -ne 0 ]; then
echo "Files changed; updating parchment-for-inform7.zip"
rm parchment-for-inform7.zip
zip -r parchment-for-inform7.zip Parchment
else
echo "Files are unchanged"
fi
echo "Packaging parchment-for-inform7.zip"
rm -f parchment-for-inform7.zip
zip -r parchment-for-inform7.zip Parchment

0 comments on commit dc5dd01

Please sign in to comment.