Sleitnick / rbxcloud

CLI and library for Roblox Open Cloud API
https://sleitnick.github.io/rbxcloud/
MIT License
95 stars 10 forks source link

Add support for Inte-based Macs #63

Open Fr0z3nRebel opened 3 weeks ago

Fr0z3nRebel commented 3 weeks ago

As a developer using an Intel Mac, I would like to be able to seamlessly install and use rbxcloud via Aftman to avoid having to build from source.

Currently, I cannot develop with any of the available assets for release 0.14.0 on my Intel-based MacBook Pro. I receive the following error:

Aftman error: Failed to run tool Sleitnick/rbxcloud@0.14.0, your installation may be corrupt.

Caused by:
    0: could not spawn /Users/fr0z3nrebel/.aftman/tool-storage/Sleitnick/rbxcloud/0.14.0/rbxcloud
    1: Bad CPU type in executable (os error 86)

However, after building from source locally using cargo then manually copying the release over to Aftman, I was able to get rbxcloud working.

Acceptance Criteria:

Sleitnick commented 3 weeks ago

Are you grabbing the correct binary? The releases contain both ARM and x86 binaries.

Fr0z3nRebel commented 3 weeks ago

I'm using Aftman to manage the installation:

game git:(develop) ✗ aftman install
[INFO  aftman::tool_storage] Installing tool: Sleitnick/rbxcloud@0.14.0
[INFO  aftman::tool_storage] Downloading Sleitnick/rbxcloud v0.14.0 (rbxcloud-0.14.0-macos.zip)...
[INFO  aftman::tool_storage] Sleitnick/rbxcloud v0.14.0 installed successfully.
➜  game git:(develop) ✗ rbxcloud
Aftman error: Failed to run tool Sleitnick/rbxcloud@0.14.0, your installation may be corrupt.

Caused by:
    0: could not spawn /Users/fr0z3nrebel/.aftman/tool-storage/Sleitnick/rbxcloud/0.14.0/rbxcloud
    1: Bad CPU type in executable (os error 86)
➜  game git:(develop) ✗ uname -m
x86_64
image

aftman.toml

# This file lists tools managed by Aftman, a cross-platform toolchain manager.
# For more information, see https://github.com/LPGhatguy/aftman

# To add a new tool, add an entry to this table.
[tools]
rojo = "rojo-rbx/rojo@7.4.3"
selene = "Kampfkarren/selene@0.27.1"
stylua = "JohnnyMorganz/StyLua@0.20.0"
rbxcloud = "Sleitnick/rbxcloud@0.14.0"

Am I doing something wrong? If I build from source using cargo and replace what aftman installed, it works without issue.