From c818883d9dc8d34eaee03691574e0408f18db28a Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Fri, 1 Dec 2023 00:04:01 -0800 Subject: [PATCH] feat(bin): Add Windows support (#9) --- .gitignore | 3 ++- Eask | 16 ++++++++++++++++ bin/github-elpa | 2 +- bin/github-elpa.bat | 1 + 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 Eask create mode 100644 bin/github-elpa.bat diff --git a/.gitignore b/.gitignore index c1d397b..2bff9a2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,10 +3,11 @@ # Packaging .cask +.eask # github-elpa .github-elpa-working/ # Cask repository - +dist/ cask-repository/ diff --git a/Eask b/Eask new file mode 100644 index 0000000..0f20013 --- /dev/null +++ b/Eask @@ -0,0 +1,16 @@ +(package "github-elpa" "0.0.1" "Build and publish ELPA repositories with GitHub Pages") + +(website-url "https://github.com/10sr/github-elpa") + +(package-file "github-elpa.el") + +(files :defaults "bin") + +(source 'gnu) +(source 'melpa) + +(depends-on "package-build") +(depends-on "commander") +(depends-on "git") + +(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432 diff --git a/bin/github-elpa b/bin/github-elpa index 6ab0968..383e6c1 100755 --- a/bin/github-elpa +++ b/bin/github-elpa @@ -94,7 +94,7 @@ (command "update" "Update elpa repository" github-elpa-bin-update) (command "build" "Update elpa archives without committing them" github-elpa-bin-build) - (command "commit" "Commit elpa archives" github-elpa-bin-commmit) + (command "commit" "Commit elpa archives" github-elpa-bin-commit) (option "--working-dir , -w " github-elpa-bin-set-working-dir) diff --git a/bin/github-elpa.bat b/bin/github-elpa.bat new file mode 100644 index 0000000..0ac9181 --- /dev/null +++ b/bin/github-elpa.bat @@ -0,0 +1 @@ +emacs -batch -Q -l %~dp0github-elpa -- %*