tamhonvotri commited on
Commit
b25fe9a
·
1 Parent(s): 119074b

fix: revert to DMG format for macOS to bypass zip corruption and update links

Browse files
.gitattributes CHANGED
@@ -4,5 +4,6 @@
4
  *.svg filter=lfs diff=lfs merge=lfs -text
5
  assets/demo/office_demo.webp filter=lfs diff=lfs merge=lfs -text
6
  *.zip filter=lfs diff=lfs merge=lfs -text
 
7
  *.msi filter=lfs diff=lfs merge=lfs -text
8
  *.deb filter=lfs diff=lfs merge=lfs -text
 
4
  *.svg filter=lfs diff=lfs merge=lfs -text
5
  assets/demo/office_demo.webp filter=lfs diff=lfs merge=lfs -text
6
  *.zip filter=lfs diff=lfs merge=lfs -text
7
+ *.dmg filter=lfs diff=lfs merge=lfs -text
8
  *.msi filter=lfs diff=lfs merge=lfs -text
9
  *.deb filter=lfs diff=lfs merge=lfs -text
.github/workflows/build.yml CHANGED
@@ -20,20 +20,11 @@ jobs:
20
  run: pnpm install
21
  - name: Build Tauri Apps
22
  run: pnpm tauri:build
23
- - name: Zip Mac Apps
24
- run: |
25
- cd target/release/bundle/macos
26
- for app in *.app; do
27
- # Replace spaces with hyphens in the filename to avoid URL issues
28
- safe_name=$(echo "$app" | sed 's/ /-/g')
29
- mv "$app" "$safe_name"
30
- zip -r "${safe_name}.zip" "$safe_name"
31
- done
32
  - name: Upload Mac Artifacts
33
  uses: actions/upload-artifact@v4
34
  with:
35
  name: macOS-Apps
36
- path: target/release/bundle/macos/*.zip
37
 
38
  build-windows:
39
  runs-on: windows-latest
 
20
  run: pnpm install
21
  - name: Build Tauri Apps
22
  run: pnpm tauri:build
 
 
 
 
 
 
 
 
 
23
  - name: Upload Mac Artifacts
24
  uses: actions/upload-artifact@v4
25
  with:
26
  name: macOS-Apps
27
+ path: target/release/bundle/dmg/*.dmg
28
 
29
  build-windows:
30
  runs-on: windows-latest
README.md CHANGED
@@ -25,7 +25,7 @@ Hệ sinh thái LinhHương Office được biên dịch hoàn toàn tự độn
25
  | 🖥️ Hệ Điều Hành | 📝 Soạn Thảo | 📊 Bảng Tính | 🎬 Trình Chiếu | 🧮 Công Thức | 🖩 Máy Tính | 🖼️ Thư Viện Ảnh | 🎵 Nghe Nhạc | 🎞️ Phát Video |
26
  | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
27
  | **🪟 Windows (.msi)** | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/soan-thao_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/bang-tinh_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/trinh-chieu_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/cong-thuc_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/may-tinh_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/thu-vien-anh_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/nghe-nhac_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/phat-video_0.1.0_x64_en-US.msi) |
28
- | **🍏 macOS (.app.zip)** | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/soan-thao.app.zip) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/bang-tinh.app.zip) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/trinh-chieu.app.zip) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/cong-thuc.app.zip) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/may-tinh.app.zip) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/thu-vien-anh.app.zip) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/nghe-nhac.app.zip) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/phat-video.app.zip) |
29
  | **🐧 Linux (.deb)** | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/soan-thao_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/bang-tinh_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/trinh-chieu_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/cong-thuc_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/may-tinh_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/thu-vien-anh_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/nghe-nhac_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/phat-video_0.1.0_amd64.deb) |
30
 
31
  *💡 Mẹo: Link tải trực tiếp từ GitHub Releases. Nếu bạn gặp lỗi tải, hãy truy cập nhánh `releases` trên [HuggingFace của Linh Hương Linux](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/tree/main) để tải thủ công.*
 
25
  | 🖥️ Hệ Điều Hành | 📝 Soạn Thảo | 📊 Bảng Tính | 🎬 Trình Chiếu | 🧮 Công Thức | 🖩 Máy Tính | 🖼️ Thư Viện Ảnh | 🎵 Nghe Nhạc | 🎞️ Phát Video |
26
  | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
27
  | **🪟 Windows (.msi)** | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/soan-thao_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/bang-tinh_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/trinh-chieu_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/cong-thuc_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/may-tinh_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/thu-vien-anh_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/nghe-nhac_0.1.0_x64_en-US.msi) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/phat-video_0.1.0_x64_en-US.msi) |
28
+ | **🍏 macOS (.dmg)** | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/soan-thao_0.1.0_aarch64.dmg) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/bang-tinh_0.1.0_aarch64.dmg) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/trinh-chieu_0.1.0_aarch64.dmg) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/cong-thuc_0.1.0_aarch64.dmg) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/may-tinh_0.1.0_aarch64.dmg) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/thu-vien-anh_0.1.0_aarch64.dmg) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/nghe-nhac_0.1.0_aarch64.dmg) | [📥 Tải](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/resolve/main/dist_releases/macOS/phat-video_0.1.0_aarch64.dmg) |
29
  | **🐧 Linux (.deb)** | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/soan-thao_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/bang-tinh_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/trinh-chieu_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/cong-thuc_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/may-tinh_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/thu-vien-anh_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/nghe-nhac_0.1.0_amd64.deb) | [📥 Tải](https://github.com/tamhonvotri/linhhuonglinux-office/releases/latest/download/phat-video_0.1.0_amd64.deb) |
30
 
31
  *💡 Mẹo: Link tải trực tiếp từ GitHub Releases. Nếu bạn gặp lỗi tải, hãy truy cập nhánh `releases` trên [HuggingFace của Linh Hương Linux](https://huggingface.co/linhhuonglinux/linhhuonglinux-office/tree/main) để tải thủ công.*
apps/bang-tinh/src-tauri/tauri.conf.json CHANGED
@@ -8,7 +8,7 @@
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
- "app",
12
  "deb",
13
  "msi"
14
  ]
@@ -33,4 +33,4 @@
33
  "csp": null
34
  }
35
  }
36
- }
 
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
+ "dmg",
12
  "deb",
13
  "msi"
14
  ]
 
33
  "csp": null
34
  }
35
  }
36
+ }
apps/cong-thuc/src-tauri/tauri.conf.json CHANGED
@@ -8,7 +8,7 @@
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
- "app",
12
  "deb",
13
  "msi"
14
  ]
@@ -33,4 +33,4 @@
33
  "csp": null
34
  }
35
  }
36
- }
 
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
+ "dmg",
12
  "deb",
13
  "msi"
14
  ]
 
33
  "csp": null
34
  }
35
  }
36
+ }
apps/may-tinh/src-tauri/tauri.conf.json CHANGED
@@ -8,7 +8,7 @@
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
- "app",
12
  "deb",
13
  "msi"
14
  ]
@@ -33,4 +33,4 @@
33
  "csp": null
34
  }
35
  }
36
- }
 
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
+ "dmg",
12
  "deb",
13
  "msi"
14
  ]
 
33
  "csp": null
34
  }
35
  }
36
+ }
apps/nghe-nhac/src-tauri/tauri.conf.json CHANGED
@@ -8,7 +8,7 @@
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
- "app",
12
  "deb",
13
  "msi"
14
  ]
@@ -33,4 +33,4 @@
33
  "csp": null
34
  }
35
  }
36
- }
 
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
+ "dmg",
12
  "deb",
13
  "msi"
14
  ]
 
33
  "csp": null
34
  }
35
  }
36
+ }
apps/phat-video/src-tauri/tauri.conf.json CHANGED
@@ -8,7 +8,7 @@
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
- "app",
12
  "deb",
13
  "msi"
14
  ]
@@ -33,4 +33,4 @@
33
  "csp": null
34
  }
35
  }
36
- }
 
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
+ "dmg",
12
  "deb",
13
  "msi"
14
  ]
 
33
  "csp": null
34
  }
35
  }
36
+ }
apps/soan-thao/src-tauri/tauri.conf.json CHANGED
@@ -8,7 +8,7 @@
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
- "app",
12
  "deb",
13
  "msi"
14
  ]
@@ -33,4 +33,4 @@
33
  "csp": null
34
  }
35
  }
36
- }
 
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
+ "dmg",
12
  "deb",
13
  "msi"
14
  ]
 
33
  "csp": null
34
  }
35
  }
36
+ }
apps/thu-vien-anh/src-tauri/tauri.conf.json CHANGED
@@ -8,7 +8,7 @@
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
- "app",
12
  "deb",
13
  "msi"
14
  ]
@@ -33,4 +33,4 @@
33
  "csp": null
34
  }
35
  }
36
- }
 
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
+ "dmg",
12
  "deb",
13
  "msi"
14
  ]
 
33
  "csp": null
34
  }
35
  }
36
+ }
apps/trinh-chieu/src-tauri/tauri.conf.json CHANGED
@@ -8,7 +8,7 @@
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
- "app",
12
  "deb",
13
  "msi"
14
  ]
@@ -33,4 +33,4 @@
33
  "csp": null
34
  }
35
  }
36
- }
 
8
  "bundle": {
9
  "active": true,
10
  "targets": [
11
+ "dmg",
12
  "deb",
13
  "msi"
14
  ]
 
33
  "csp": null
34
  }
35
  }
36
+ }
dist_releases/macOS/trinh-chieu_0.1.0_aarch64.dmg ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7eb4aeda7fd1c7ba25730eae1940e6811bb99b67b3bc165ca5e6e8e2662dbea2
3
+ size 4032641
scripts/build_mac.sh CHANGED
@@ -13,24 +13,13 @@ pnpm install
13
  echo "Starting Tauri Build for ALL applications..."
14
  pnpm tauri:build
15
 
16
- # 3. Zip up the .app folders for distribution
17
- echo "Zipping macOS Applications..."
18
  mkdir -p dist_releases/macOS
19
- cd target/release/bundle/macos
20
 
21
- for app in *.app; do
22
- if [ -d "$app" ]; then
23
- safe_name=$(echo "$app" | sed 's/ /-/g')
24
- # If the app name has spaces, rename it temporarily
25
- if [ "$app" != "$safe_name" ]; then
26
- mv "$app" "$safe_name"
27
- fi
28
- echo "Zipping $safe_name..."
29
- zip -q -r "../../../../dist_releases/macOS/${safe_name}.zip" "$safe_name"
30
- fi
31
- done
32
-
33
- cd ../../../../
34
 
35
  echo "=========================================="
36
  echo "✅ macOS Build Complete!"
 
13
  echo "Starting Tauri Build for ALL applications..."
14
  pnpm tauri:build
15
 
16
+ # 3. Gather the .dmg files for distribution
17
+ echo "Gathering macOS DMG files..."
18
  mkdir -p dist_releases/macOS
 
19
 
20
+ if [ -d "target/release/bundle/dmg" ]; then
21
+ cp target/release/bundle/dmg/*.dmg dist_releases/macOS/
22
+ fi
 
 
 
 
 
 
 
 
 
 
23
 
24
  echo "=========================================="
25
  echo "✅ macOS Build Complete!"