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:
VancySavoki
2025-09-01 17:34:47 +08:00
parent f5d7819fc7
commit d4475a644d
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'
cache: 'npm'
- name: Install dependencies
run: npm ci

View File

@@ -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);