MCPcopy Create free account
hub / github.com/arctic-cli/interface / main

Function main

packages/arctic/script/postinstall.mjs:100–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100async function main() {
101 try {
102 if (os.platform() === "win32") {
103 // On Windows, the .exe is already included in the package and bin field points to it
104 // No postinstall setup needed
105 console.log("Windows detected: binary setup not needed (using packaged .exe)")
106 return
107 }
108
109 const { binaryPath, binaryName } = findBinary()
110 symlinkBinary(binaryPath, binaryName)
111 } catch (error) {
112 console.error("Failed to setup arctic binary:", error.message)
113 process.exit(1)
114 }
115}
116
117try {
118 main()

Callers 1

postinstall.mjsFile · 0.70

Calls 3

findBinaryFunction · 0.85
symlinkBinaryFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected