mirror of
https://github.com/AmintaCCCP/GithubStarsManager.git
synced 2025-11-25 18:47:32 +08:00
feat(Header): ✨ Add drag and no-drag regions for desktop app
* Implemented `.hd-drag` and `.hd-btns` classes for better window management in the Electron app. * Updated `Header.tsx` to utilize these new classes for improved user experience.
This commit is contained in:
2
.github/workflows/build-desktop.yml
vendored
2
.github/workflows/build-desktop.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
@@ -8,7 +8,7 @@ console.log('🚀 开始构建桌面应用...');
|
||||
|
||||
// 1. 构建Web应用
|
||||
console.log('📦 构建Web应用...');
|
||||
execSync('pnpm run build', { stdio: 'inherit' });
|
||||
execSync('npm run build', { stdio: 'inherit' });
|
||||
|
||||
// 2. 创建Electron目录和文件
|
||||
console.log('⚡ 设置Electron环境...');
|
||||
@@ -162,7 +162,7 @@ fs.writeFileSync(
|
||||
// 5. 安装Electron依赖
|
||||
console.log('📥 安装Electron依赖...');
|
||||
try {
|
||||
execSync('pnpm install --save-dev electron electron-builder', { stdio: 'inherit' });
|
||||
execSync('npm install --save-dev electron electron-builder', { stdio: 'inherit' });
|
||||
} catch (error) {
|
||||
console.error('安装依赖失败:', error.message);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user