v0.2.1 release

This commit is contained in:
Michael Freno
2025-11-16 09:36:46 -05:00
parent 4142b7e831
commit 39ccf0c450
26 changed files with 11070 additions and 220 deletions

34
docs/update-version.js Normal file
View File

@@ -0,0 +1,34 @@
const fs = require('fs');
const path = require('path');
// Extract version from FlexLove.lua
function getVersion() {
try {
const flexlovePath = path.join(__dirname, '..', 'FlexLove.lua');
const content = fs.readFileSync(flexlovePath, 'utf8');
const match = content.match(/flexlove\._VERSION\s*=\s*["']([^"']+)["']/);
return match ? match[1] : 'unknown';
} catch (e) {
return 'unknown';
}
}
// Update index.html with current version
function updateIndexVersion() {
const version = getVersion();
const indexPath = path.join(__dirname, 'index.html');
let content = fs.readFileSync(indexPath, 'utf8');
// Update version in multiple places
content = content.replace(
/FlexLöve v[\d.]+/g,
`FlexLöve v${version}`
);
fs.writeFileSync(indexPath, content, 'utf8');
console.log(`✓ Updated index.html to version ${version}`);
}
const version = getVersion();
console.log(`Current version: ${version}`);
updateIndexVersion();