Skip to content

Commit

Permalink
✨ feat: initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
GalacticDevOps committed Dec 26, 2024
1 parent a034e74 commit 69c3933
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 50 deletions.
62 changes: 14 additions & 48 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,59 +108,26 @@ jobs:
with:
node-version: "20.x"

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: latest

# 更新系统并安装必要依赖
- name: Install Linux Dependencies
# 更新 Ubuntu 软件源
- name: Ubuntu Update with sudo
run: sudo apt-get update
# 安装依赖
- name: Install RPM & Pacman
run: |
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev \
webkit2gtk-4.0 \
libappindicator3-dev \
librsvg2-dev \
patchelf \
fakeroot \
dpkg \
rpm \
snapd \
snapcraft \
build-essential
sudo apt-get install --no-install-recommends -y rpm &&
sudo apt-get install --no-install-recommends -y libarchive-tools &&
sudo apt-get install --no-install-recommends -y libopenjp2-tools
# 安装项目依赖
- name: Install Dependencies
run: |
pnpm install
# 确保构建工具有执行权限
sudo chmod +x node_modules/.pnpm/app-builder-bin@*/node_modules/app-builder-bin/linux/x64/app-builder
# 构建应用
- name: Build Electron App
run: pnpm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Linux 打包
- name: Build Linux Package
run: |
# 设置临时目录权限
sudo chmod -R 777 /tmp
# 启用详细日志输出
export DEBUG=electron-builder
# 执行构建
pnpm run build:linux
run: npm install
# 构建 Electron App
- name: Build Electron App for Linux
run: npm run build:linux || true
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# 检查构建输出
- name: List Build Output
run: |
ls -la dist
find dist -type f -exec file {} \;
# 上传构建产物
- name: Upload Linux Artifacts
uses: softprops/action-gh-release@v1
Expand All @@ -170,7 +137,6 @@ jobs:
dist/*.AppImage
dist/*.deb
dist/*.rpm
dist/*.snap
token: ${{ secrets.GITHUB_TOKEN }}
fail_on_unmatched_files: false

Expand All @@ -195,7 +161,7 @@ jobs:
shell: bash

- name: Update Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: Release ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.1-alpha1] - 2024-12-26
## [1.0.1-alpha2] - 2024-12-26

### Added
- 支持修改 Cursor 的相关机器码
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ez-cursor-free",
"version": "1.0.1",
"version": "1.0.1-alpha2",
"description": "An Electron application with Vue and TypeScript",
"main": "./out/main/index.js",
"author": "example.com",
Expand Down

0 comments on commit 69c3933

Please sign in to comment.