pjv on Nostr: #[0] I have not tried this on a linux box (I use a mac), but I think you might be ...
M. Dilger (npub1acg…p35c) I have not tried this on a linux box (I use a mac), but I think you might be able to easily build for macos using cargo-bundle:
https://github.com/burtonageo/cargo-bundleI'm compiling gossip from the repo, but early on out of curiosity I installed cargo-bundle, created a simple Cargo.toml and then was able to generate a stand-alone app bundle for macos that worked fine.
cargo-bundle says it cross-compiles with a simple --target flag so my guess is that you would be able to pretty simply build at least for intel macs. On a quick glance through the repo I'm not sure if it can cross-compile for apple silicon yet. There's an open issue about implementing fat binaries that would run on both intel and apple silicon macs.
If you want to try it, I'll test for you. I have both an intel mac and an apple silicon mac.
Published at
2023-03-12 11:50:54Event JSON
{
"id": "21a0c59dc3b993a5b1ba4e4305fdc3668b87031e16219772e714fcba27deac3a",
"pubkey": "0c99877612291bd818b3dd92f2852b823557b3744c3cb10470865c7a56a4929b",
"created_at": 1678621854,
"kind": 1,
"tags": [
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
],
[
"p",
"c5fb6ecc876e0458e3eca9918e370cbcd376901c58460512fe537a46e58c38bb"
],
[
"p",
"2b57730ec1cc46d2d565f04bdac193003633d9829ecf92009e79066b9cf5c3ec"
],
[
"e",
"000048c8dee1c79c66ff7af8f1349541209be253e69c054c4d70e4223dd2edb8",
"wss://at.nostrworks.com/",
"root"
],
[
"e",
"00004641a94291f4d0bd0eaf31a78d6923708609cde98ae83a0b0de2954c9a3e",
"wss://at.nostrworks.com/",
"reply"
]
],
"content": "#[0] I have not tried this on a linux box (I use a mac), but I think you might be able to easily build for macos using cargo-bundle: https://github.com/burtonageo/cargo-bundle\n\nI'm compiling gossip from the repo, but early on out of curiosity I installed cargo-bundle, created a simple Cargo.toml and then was able to generate a stand-alone app bundle for macos that worked fine.\n\ncargo-bundle says it cross-compiles with a simple --target flag so my guess is that you would be able to pretty simply build at least for intel macs. On a quick glance through the repo I'm not sure if it can cross-compile for apple silicon yet. There's an open issue about implementing fat binaries that would run on both intel and apple silicon macs.\n\nIf you want to try it, I'll test for you. I have both an intel mac and an apple silicon mac.",
"sig": "3493b87785b135597eb0101de94a3cbbce0d94c15d39f038752f468f6f14ac412fea6bab1cce43be136038ec8cec3aa1d20075e113dc9ac3536b9ad529c09d5c"
}