Skip to content

Commit 5464ec7

Browse files
committed
github workflow
1 parent d768648 commit 5464ec7

5 files changed

Lines changed: 7 additions & 41 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
args: '--target aarch64-apple-darwin'
2727
- platform: 'macos-latest'
2828
args: '--target x86_64-apple-darwin'
29-
- platform: 'ubuntu-22.04'
30-
args: ''
3129
- platform: 'windows-latest'
3230
args: ''
3331

@@ -52,37 +50,12 @@ jobs:
5250
with:
5351
workspaces: './src-tauri -> target'
5452

55-
- name: Install dependencies (ubuntu only)
56-
if: matrix.platform == 'ubuntu-22.04'
57-
run: |
58-
sudo apt-get update
59-
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
60-
6153
- name: Install frontend dependencies
6254
run: npm install
6355

64-
- name: Lint frontend (ubuntu only)
65-
if: matrix.platform == 'ubuntu-22.04'
66-
run: npm run lint
67-
68-
- name: Check Rust formatting (ubuntu only)
69-
if: matrix.platform == 'ubuntu-22.04'
70-
run: cd src-tauri && cargo fmt --all -- --check
71-
72-
- name: Check Rust code with Clippy (ubuntu only)
73-
if: matrix.platform == 'ubuntu-22.04'
74-
run: cd src-tauri && cargo clippy -- -D warnings
75-
7656
- name: Build the app
7757
run: npm run tauri:build ${{ matrix.args }}
7858

79-
- name: Upload artifacts (ubuntu only)
80-
if: matrix.platform == 'ubuntu-22.04'
81-
uses: actions/upload-artifact@v4
82-
with:
83-
name: linux-artifacts
84-
path: src-tauri/target/release/bundle/
85-
8659
- name: Upload artifacts (windows only)
8760
if: matrix.platform == 'windows-latest'
8861
uses: actions/upload-artifact@v4
@@ -128,8 +101,7 @@ jobs:
128101
--notes "Download the appropriate installer for your platform:
129102
130103
- **Windows**: .msi or .exe file
131-
- **macOS**: .dmg file (choose Intel or Apple Silicon)
132-
- **Linux**: .deb or .AppImage file"
104+
- **macOS**: .dmg file (choose Intel or Apple Silicon)"
133105
134106
# Upload all artifacts
135-
find artifacts -type f \( -name "*.msi" -o -name "*.exe" -o -name "*.dmg" -o -name "*.deb" -o -name "*.AppImage" \) -exec gh release upload ${{ github.ref_name }} {} \;
107+
find artifacts -type f \( -name "*.msi" -o -name "*.exe" -o -name "*.dmg" \) -exec gh release upload ${{ github.ref_name }} {} \;

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ Ensure you have the following installed on your system:
101101
# macOS
102102
brew install ollama
103103

104-
# Linux
105-
curl -fsSL https://ollama.ai/install.sh | sh
106-
107104
# Windows
108105
# Download from https://ollama.ai/download
109106
```

TAURI_SETUP.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### 1. Tauri Configuration
66
- **File**: `src-tauri/tauri.conf.json`
77
- **Bundle ID**: `com.beautifyollama.desktop` (fixed from `.app` to avoid conflicts)
8-
- **Targets**: DMG (macOS), MSI/NSIS (Windows), DEB/RPM/AppImage (Linux)
8+
- **Targets**: DMG (macOS), MSI/NSIS (Windows)
99
- **Icons**: Using your `icon.png` with generated platform-specific formats
1010

1111
### 2. Project Icon Integration
@@ -20,15 +20,14 @@
2020
{
2121
"build:all": "tauri build", // All platforms
2222
"build:mac": "tauri build --bundles dmg", // macOS DMG
23-
"build:windows": "tauri build --bundles msi,nsis", // Windows installers
24-
"build:linux": "tauri build --bundles deb,rpm,appimage" // Linux packages
23+
"build:windows": "tauri build --bundles msi,nsis" // Windows installers
2524
}
2625
```
2726

2827
### 4. GitHub Actions Workflow
2928
- **File**: `.github/workflows/build.yml`
3029
- **Triggers**: Git tags (v*) or manual dispatch
31-
- **Platforms**: macOS, Ubuntu, Windows
30+
- **Platforms**: macOS, Windows
3231
- **Output**: Automatic releases with cross-platform builds
3332

3433
### 5. Documentation
@@ -46,7 +45,6 @@ npm run desktop # Run desktop app in development mode
4645
npm run build:all # Build all formats for current OS
4746
npm run build:mac # macOS only (requires macOS)
4847
npm run build:windows # Windows only (requires Windows)
49-
npm run build:linux # Linux only (requires Linux)
5048
```
5149

5250
### Cross-Platform Building

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"build:desktop": "npm run tauri:build",
1616
"build:all": "tauri build",
1717
"build:mac": "tauri build --bundles dmg",
18-
"build:windows": "tauri build --bundles msi,nsis",
19-
"build:linux": "tauri build --bundles deb,rpm,appimage"
18+
"build:windows": "tauri build --bundles msi,nsis"
2019
},
2120
"dependencies": {
2221
"@radix-ui/react-select": "^2.2.5",

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"bundle": {
3636
"active": true,
37-
"targets": ["dmg", "msi", "nsis", "deb", "rpm", "appimage"],
37+
"targets": ["dmg", "msi", "nsis"],
3838
"icon": [
3939
"icons/32x32.png",
4040
"icons/128x128.png",

0 commit comments

Comments
 (0)