This commit is contained in:
AmintaCCCP
2025-07-28 22:58:19 +08:00
parent 2ffa355fa5
commit e8c4b2ee66
2 changed files with 44 additions and 47 deletions

View File

@@ -45,53 +45,8 @@ jobs:
else
echo "Creating fallback dist directory and index.html"
mkdir -p dist
node -e "
const fs = require('fs');
const html = \`<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
<title>GitHub Stars Manager</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background: #f5f5f5;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 { color: #333; }
.status { color: #666; margin-top: 20px; }
</style>
</head>
<body>
<div class=\"container\">
<h1>GitHub Stars Manager</h1>
<p>Welcome to GitHub Stars Manager Desktop Application!</p>
<div class=\"status\">
<p>This is a fallback page. The main application should load here.</p>
<p>Application built successfully with GitHub Actions.</p>
</div>
</div>
<script>
console.log('GitHub Stars Manager loaded successfully');
document.addEventListener('DOMContentLoaded', function() {
console.log('DOM ready');
});
</script>
</body>
</html>\`;
fs.writeFileSync('dist/index.html', html);
console.log('✓ Fallback index.html created');
"
cp templates/fallback-index.html dist/index.html
echo "✓ Fallback index.html created from template"
fi
- name: Install sharp for icon generation

View File

@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub Stars Manager</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background: #f5f5f5;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 { color: #333; }
.status { color: #666; margin-top: 20px; }
</style>
</head>
<body>
<div class="container">
<h1>GitHub Stars Manager</h1>
<p>Welcome to GitHub Stars Manager Desktop Application!</p>
<div class="status">
<p>This is a fallback page. The main application should load here.</p>
<p>Application built successfully with GitHub Actions.</p>
</div>
</div>
<script>
console.log('GitHub Stars Manager loaded successfully');
document.addEventListener('DOMContentLoaded', function() {
console.log('DOM ready');
});
</script>
</body>
</html>