| Josh Bleecher Snyder | 1c18ec9 | 2025-07-08 10:55:54 -0700 | [diff] [blame] | 1 | //go:build outie |
| 2 | |
| 3 | package embedded |
| 4 | |
| 5 | import ( |
| 6 | _ "embed" |
| 7 | "io/fs" |
| 8 | ) |
| 9 | |
| Josh Bleecher Snyder | 5ae245b | 2025-07-08 22:00:24 +0000 | [diff] [blame^] | 10 | //go:embed sketch-linux/sketch-linux-amd64 |
| 11 | var sketchLinuxBinaryAmd64 []byte |
| 12 | |
| 13 | //go:embed sketch-linux/sketch-linux-arm64 |
| 14 | var sketchLinuxBinaryArm64 []byte |
| Josh Bleecher Snyder | 1c18ec9 | 2025-07-08 10:55:54 -0700 | [diff] [blame] | 15 | |
| 16 | // LinuxBinary returns the embedded linux binary. |
| Josh Bleecher Snyder | 5ae245b | 2025-07-08 22:00:24 +0000 | [diff] [blame^] | 17 | func LinuxBinary(arch string) []byte { |
| 18 | switch arch { |
| 19 | case "amd64", "x86_64": |
| 20 | return sketchLinuxBinaryAmd64 |
| 21 | case "arm64", "aarch64": |
| 22 | return sketchLinuxBinaryArm64 |
| 23 | } |
| 24 | return nil |
| Josh Bleecher Snyder | 1c18ec9 | 2025-07-08 10:55:54 -0700 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | // WebUIFS returns the embedded webui filesystem. |
| 28 | func WebUIFS() fs.FS { |
| 29 | // webUIAssets are not present in outie |
| 30 | return nil |
| 31 | } |