Skip to content
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

Linux

  • 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

Windows

Mac

  • 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

Clone this wiki locally