diff --git a/.gitignore b/.gitignore index f263413..6fdf9b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build/bin +build/release node_modules frontend/dist .DS_Store diff --git a/README.md b/README.md index e804d03..e9fa026 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A simple, better and GUI friendly [ceph](https://github.com/ceph/ceph) desktop manager, compatible with Linux, windows, mac. What's more, it support all the s3 protocol object storage service, like [minio](https://github.com/minio/minio). -[![Download](https://img.shields.io/github/v/release/cjhuaxin/CephDesktopManager)](https://github.com/cjhuaxin/CephDesktopManager/releases) +[![Download](https://img.shields.io/github/downloads/cjhuaxin/CephDesktopManager/total)](https://img.shields.io/github/downloads/cjhuaxin/CephDesktopManager/total) [![MIT](https://img.shields.io/github/license/cjhuaxin/CephDesktopManager)](LICENSE) [![Twitter](https://img.shields.io/badge/Twitter-%40cjhuaxin-blue)](https://twitter.com/cjhuaxin) [![MacOS](https://img.shields.io/badge/-macOS-gray?style=plastic&logo=apple)](https://img.shields.io/badge/-macOS-gray?style=plastic&logo=apple) diff --git a/README.zh-CN.md b/README.zh-CN.md index 92c1b11..d0384ea 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -6,7 +6,7 @@ 简单、更好、GUI友好的[ceph](https://github.com/ceph/ceph)桌面管理器,兼容Linux、windows、mac。 更重要的是,它支持所有的s3协议对象存储服务,如 [minio](https://github.com/minio/minio) -[![Download](https://img.shields.io/github/v/release/cjhuaxin/CephDesktopManager)](https://github.com/cjhuaxin/CephDesktopManager/releases) +[![Download](https://img.shields.io/github/downloads/cjhuaxin/CephDesktopManager/total)](https://img.shields.io/github/downloads/cjhuaxin/CephDesktopManager/total) [![MIT](https://img.shields.io/github/license/cjhuaxin/CephDesktopManager)](LICENSE) [![Twitter](https://img.shields.io/badge/Twitter-%40cjhuaxin-blue)](https://twitter.com/cjhuaxin) [![MacOS](https://img.shields.io/badge/-macOS-gray?style=plastic&logo=apple)](https://img.shields.io/badge/-macOS-gray?style=plastic&logo=apple) diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f2e0e54 --- /dev/null +++ b/build.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +if [ ! -n "$1" ]; then + echo 'Error: version is empty' + exit 1 +fi + +version=$1 + +mkdir build/release/$version + +# build windows arm64 +wails build -clean -platform windows/arm64 -trimpath -webview2 Embed +mv build/bin/Ceph-Desktop-Manager.exe build/release/$version/Ceph-Desktop-Manager-arm64-$version.exe + +# build windows amd64 +wails build -clean -platform windows/amd64 -trimpath -webview2 Embed +mv build/bin/Ceph-Desktop-Manager.exe build/release/$version/Ceph-Desktop-Manager-amd64-$version.exe + +build mac universal +wails build -clean -platform darwin/universal -trimpath +cd build/bin +pwd +create-dmg 'Ceph Desktop Manager.app' --overwrite +mv "Ceph Desktop Manager ${version:1}.dmg" ../release/$version/Ceph-Desktop-Manager-darwin-universal-$version.dmg diff --git a/wails.json b/wails.json index 39e4fa5..ae56be0 100644 --- a/wails.json +++ b/wails.json @@ -11,6 +11,6 @@ "email": "cjhuaxin@qq.com" }, "info": { - "productVersion": "1.2.0" + "productVersion": "1.3.0" } } \ No newline at end of file