Skip to content

Commit

Permalink
update app version
Browse files Browse the repository at this point in the history
  • Loading branch information
cjhuaxin committed Jul 24, 2023
1 parent a8553d3 commit ddfa7b6
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/bin
build/release
node_modules
frontend/dist
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
25 changes: 25 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion wails.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"email": "[email protected]"
},
"info": {
"productVersion": "1.2.0"
"productVersion": "1.3.0"
}
}

0 comments on commit ddfa7b6

Please sign in to comment.