shithub: ricket

Download patch

ref: 5f93ff10eb90274975415b2e4ff3ded4a5009914
parent: 4bad87eab118558cb71c86a9fc7e1dff42ee5211
author: Skyrbunny <[email protected]>
date: Tue Sep 12 06:26:36 EDT 2023

tweaking generated mkfile

binary files a/ricket b/ricket differ
--- a/ricket.go
+++ b/ricket.go
@@ -9,12 +9,13 @@
 	"log"
 	"os"
 	"path"
+	"runtime"
 
 	"github.com/tetratelabs/wazero"
 	"github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1"
 )
 
-const arch = "amd64"
+const arch = runtime.GOARCH
 
 func main() {
 	if len(os.Args) == 1 {
@@ -178,7 +179,7 @@
 USER = glenda
 
 install:V:
-	cp %s /$ARCH/%s/bin
-	echo "bind -b /$ARCH/%s/bin /bin" >> /usr/$USER/lib/profile
-	`, arch, name, name, name)
-} // TODO: Other architectures
+	dircp %s /$ARCH/
+	echo "bind -b /$ARCH/%s /bin" >> /usr/$USER/lib/profile
+	`, arch, name, name)
+}