Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing latest code #530

Open
3 tasks done
gservat opened this issue Sep 23, 2024 · 5 comments
Open
3 tasks done

Installing latest code #530

gservat opened this issue Sep 23, 2024 · 5 comments

Comments

@gservat
Copy link

gservat commented Sep 23, 2024

Is there a way to install the latest version from HEAD (ie. "dev" version) rather than waiting for a release? Just noticed the last release was on Aug 15th.

Checklist

aerospace CLI client version: 0.14.2-Beta 0cb8dbdfc5ee73b8cbc200f175f467ebead55201
AeroSpace.app server version: 0.14.2-Beta 0cb8dbdfc5ee73b8cbc200f175f467ebead55201
@nikitabobko
Copy link
Owner

nikitabobko commented Sep 23, 2024

You can use install-from-sources.sh in the root of the repo. It builds AeroSpace from sources and installs it as aerospace-dev homebrew cask.

Please see https://github.com/nikitabobko/AeroSpace/blob/main/dev-docs/development.md for more details

I use it myself but I can't recommend using this method of installation to others yet. I want to make some changes before recommending this method. Once the changes are done, it will be mentioned in the guide, release notes and I will close this issue

@gservat
Copy link
Author

gservat commented Sep 23, 2024

Thanks @nikitabobko! I did see (and forgot to mention) the install-from-sources.sh script but I was hoping there were nightly packages or something already built.

@nikitabobko
Copy link
Owner

nikitabobko commented Sep 23, 2024

but I was hoping there were nightly packages or something already built

I'm hesitant in providing such method of installation

First, there is a technical limitation. AeroSpace is distributed as homebrew cask, not homebrew formula. Homebrew makes it easy to install formulas from HEAD, but not casks. From what I've read from homebrew issue tracker, it's the limitations of homebrew (or a deliberate design choice?). And homebrew doesn't allow installing .app as formulas, so... 🤷 Suggestions are welcome though, maybe I'm missing something obvious

Second, I don't think that building AeroSpace from sources is any hard. I provide project setup instructions, and users can always take a look at GitHub Actions as a reference. It should take no longer than 10min from git clone to building AeroSpace from sources. Building from sources encourages tinkering and contribution. And it has an added advantage of installing with your own patches.

nikitabobko added a commit that referenced this issue Sep 23, 2024
If we didn't separate those builds, macOS would re-request accessibility permission when users switch between "-Dev" and GitHub builds.
"-Dev" builds and GitHub builds differ only in the application name and App Bundle ID.

Related: #530
nikitabobko added a commit that referenced this issue Sep 23, 2024
If we didn't separate those builds, macOS would re-request accessibility permission when users switch between "-Dev" and GitHub builds.
"-Dev" builds and GitHub builds differ only in the application name and App Bundle ID.

Related: #530
@thalesmello
Copy link

@nikitabobko I'm posting this here as it appears to be related. The only way I could effectively build the HEAD version of this package was by opening it with Xcode.

When I try to run the ./install-from-sources.sh, I get an error complaining it couldn't find xcbuild, that's not listed as a dependency in the development instructions. xcbuild appears to be deprecated, and I was unsuccessful when trying to compile it from source. Do you think we could update the build script to make use of the more standard xcodebuild or could you provide instructions on how to install xcbuild?

⚙️  Generating plists...
⚙️  Generating project...
⚙️  Writing project...
Created project at /Users/thalesmello/src/AeroSpace/AeroSpace.xcodeproj
⚙️  Generating plists...
⚙️  Generating project...
⚙️  Writing project...
Created project at /Users/thalesmello/src/AeroSpace/AeroSpace.xcodeproj
error: xcbuild executable at '/Library/Developer/SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild' does not exist or is not executable

@nikitabobko
Copy link
Owner

@thalesmello I have no idea what xcbuild is, I don't even have it installed. There must be a misconfiguration in your environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants