Created
March 5, 2021 00:45
-
-
Save ianfoo/767f87ceba5e44c035225fbd9fff69e2 to your computer and use it in GitHub Desktop.
Set up xbar dev env and build/run xbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eEuo pipefail | |
| # Prep source code | |
| unzip xbar-main.zip | |
| git clone https://github.com/wailsapp/wails.git | |
| # Install lastest wails prerelease | |
| cd wails | |
| git checkout feature/v2-mac | |
| cd v2/cmd/wails | |
| go install . | |
| wails update -pre | |
| # Go back to xbar | |
| cd ../../../../xbar-main/app | |
| # Build and run. After the initial run, this is | |
| # the only command that needs to be repeated. | |
| # xbar can be quit by selecting quit in the drop | |
| # down menu, or Ctrl-C'ing the terminal window | |
| # that pops up. | |
| wails build && open build/darwin/desktop/xbar | |
| # When you're all done, you can delete the directory | |
| # ~/Library/Application Support/xbar, which is where | |
| # plugins are installed, if you want to clean up. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment