Skip to content

Commit

Permalink
Add support for Windows
Browse files Browse the repository at this point in the history
Expand file path before saving

Enables windows compatibility
  • Loading branch information
justinbarclay committed Jul 26, 2020
1 parent f556148 commit 49324ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parinfer-rust-helper.el
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Uses PARINFER-RUST-VERSION to download a compatible version of the library."
(format "https://github.com/justinbarclay/parinfer-rust/releases/download/v%s/%s"
parinfer-rust-version
lib-name)
library-location))
(expand-file-name library-location)))
(message "Installing %s v%s to %s" lib-name parinfer-rust-version library-location))
(message "Unable to download parinfer-rust library because curl is not on $PATH")))

Expand Down
8 changes: 6 additions & 2 deletions parinfer-rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ against.")
(defvar parinfer-rust--lib-name (cond
((eq system-type 'darwin) "parinfer-rust-darwin.so")
((eq system-type 'gnu/linux) "parinfer-rust-linux.so"
"parinfer-rust-linux.so")))
"parinfer-rust-linux.so")
((eq system-type 'windows-nt) "parinfer-rust-windows.dll"
"parinfer-rust-windows.dll")))
(defvar parinfer-rust-library
(concat user-emacs-directory "parinfer-rust/" parinfer-rust--lib-name))
(unless (bound-and-true-p module-file-suffix)
Expand All @@ -96,7 +98,9 @@ against.")
(defconst parinfer-rust--lib-name (cond
((eq system-type 'darwin) "parinfer-rust-darwin.so")
((eq system-type 'gnu/linux) "parinfer-rust-linux.so"
"parinfer-rust-linux.so"))
"parinfer-rust-linux.so")
((eq system-type 'windows-nt) "parinfer-rust-windows.dll"
"parinfer-rust-windows.dll"))
"System dependent library name for `parinfer-rust-mode'.")


Expand Down

0 comments on commit 49324ea

Please sign in to comment.