Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build Electron App

on:
push:
branches:
- main

jobs:
build_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ubuntu-build
path: dist_electron/

build_windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: windows-build
path: dist_electron/

build_macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: macos-build
path: dist_electron/
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ git clone https://github.com/ProgramCX/flow_im_app.git
2. 安装依赖
```bash
cd flow_im_app

cnpm install #如果你在中国大陆地区,建议使用cnpm安装依赖
npm set registry https://registry.npmmirror.com # 如果在中国大陆地区,建议使用淘宝镜像
npm install
```

3. 启动项目
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ git clone https://github.com/ProgramCX/flow_im_app.git
2. Install dependencies:
```bash
cd flow_im_app
cnpm install # If you are in mainland China, using cnpm is recommended.
npm set registry https://registry.npmmirror.com # If you are in mainland China, using the Taobao mirror is recommended.
npm install
```
3. Start the project:
```bash
Expand Down
1 change: 1 addition & 0 deletions electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
linux: {
target: ["AppImage"],
artifactName: "${productName}-Linux-${version}.${ext}",
"icon": "public/icon/icon.png",
},
}
Loading
Loading