File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/main/clojure/com/github/clojure_lsp/intellij Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 4444(defn ^:private os-name []
4545 (let [os-name (string/lower-case (System/getProperty " os.name" " generic" ))]
4646 (cond
47- (string/starts-with ? os-name " windows " ) :windows
48- (string/starts-with ? os-name " mac" ) :macos
47+ (string/includes ? os-name " win " ) :windows
48+ (string/includes ? os-name " mac" ) :macos
4949 :else :linux )))
5050
51+ (defn ^:private os-arch []
52+ (if (= " aarch64" (System/getProperty " os.arch" ))
53+ :aarch64
54+ :amd64 ))
55+
5156(def ^:private latest-version-uri
5257 " https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/master/lib/resources/CLOJURE_LSP_RELEASED_VERSION" )
5358
6873 (tasks/set-progress indicator " LSP: Downloading clojure-lsp" )
6974 (let [version (string/trim (slurp latest-version-uri))
7075 platform (os-name )
71- arch (keyword ( System/getProperty " os. arch" ) )
76+ arch (os- arch )
7277 artifact-name (get-in artifacts [platform arch])
7378 uri (format download-artifact-uri version artifact-name)
7479 dest-file download-path
You can’t perform that action at this time.
0 commit comments