-
Notifications
You must be signed in to change notification settings - Fork 72
Home
qiwentaidi edited this page Jan 15, 2025
·
25 revisions
- Windows 10/11 AMD64/ARM64
- MacOS 10.13+ AMD64
- MacOS 11.0+ ARM64
- Linux AMD64/ARM64
- Go 1.21+
- Node.js 18+
- Wails 2.92+
go install github.com/wailsapp/wails/v2/cmd/wails@latest
- build-essential
- libgtk-3-dev
- libpcap-dev
- libwebkit2gtk-4.0-dev or libwebkit2gtk-4.1-dev
Note
新版Linux
安装libwebkit2gtk-4.1-dev
编译应用时需要增加 -tags webkit2_41
- xcode-select(已默认安装)
git clone https://github.com/qiwentaidi/Slack.git && cd Slack
wails dev # 调试模式运行
wails build # 编译应用 文件存在于build/bin路径下
wails build -debug -devtools # 编译可开启调试模式应用
Mac build dmg
# 需要先编译完Slack.app
brew install create-dmg
create-dmg --volname "Slack" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "Slack.app" 200 190 --app-drop-link 600 185 --hide-extension "Slack.app" --volicon build/bin/Slack.app/Contents/Resources/iconfile.icns "Slack.dmg" build/bin/Slack.app