mirror of
https://github.com/AmintaCCCP/GithubStarsManager.git
synced 2025-11-25 02:34:54 +08:00
0.1.0
This commit is contained in:
49
.github/workflows/build-desktop.yml
vendored
49
.github/workflows/build-desktop.yml
vendored
@@ -45,53 +45,8 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "Creating fallback dist directory and index.html"
|
echo "Creating fallback dist directory and index.html"
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
node -e "
|
cp templates/fallback-index.html dist/index.html
|
||||||
const fs = require('fs');
|
echo "✓ Fallback index.html created from template"
|
||||||
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');
|
|
||||||
"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install sharp for icon generation
|
- name: Install sharp for icon generation
|
||||||
|
|||||||
42
templates/fallback-index.html
Normal file
42
templates/fallback-index.html
Normal 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>
|
||||||
Reference in New Issue
Block a user