mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
- Introduced a migration system for manifest files to support versioning and backward compatibility. - Updated image processing to switch thumbnail format from WebP to JPEG for better compatibility. - Added new commands for manifest migration and improved thumbnail handling in the builder. - Enhanced documentation with architecture details and development commands. Signed-off-by: Innei <tukon479@gmail.com>
19 lines
461 B
Bash
19 lines
461 B
Bash
#!/bin/bash
|
|
set -e
|
|
cd ../web
|
|
pnpm build
|
|
|
|
rm -rf ../ssr/public
|
|
cp -r dist ../ssr/public
|
|
cd ../ssr
|
|
# Convert HTML to JS format with exported string
|
|
node -e "
|
|
const fs = require('fs');
|
|
const html = fs.readFileSync('./public/index.html', 'utf8');
|
|
const jsContent = \`export default \\\`\${html.replace(/\`/g, '\\\\\`').replace(/\\\$/g, '\\\\\$')}\\\`;\`;
|
|
fs.writeFileSync('./src/index.html.ts', jsContent);
|
|
"
|
|
rm ./public/index.html
|
|
# pnpm build:jpg
|
|
pnpm build:next
|