Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.
/ jekyll-exe Public archive
forked from nilliams/jekyll.exe

A portable Jekyll for Windows

Notifications You must be signed in to change notification settings

altbdoor/jekyll-exe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

jekyll.exe

Last builds are available in https://github.com/altbdoor/jekyll-exe-2, built with GitHub Actions. This repository will no longer be maintained.

Original README from @nilliams.

This is an effort to maintain small, portable Windows builds of Jekyll, built with OCRA.

The current build is Jekyll v1.2.0

In the future this repo may contain build scripts, patches etc. For now, refer to this blog post on how it is built.

The source for the Jekyll project can be found on Github here.


About

Jekyll, and all of its dependencies bundled into an executable file, so Windows users can run Jekyll without installing Ruby, Ruby DevKit or any gems. Click here to read how I got into building Jekyll v2.5.3.

Building

Make sure you have the following installed first:

  • Git for Windows (or basically a Bash environment in Windows)
  • Ruby and Ruby DevKit
  • Gems:
    • Depends on the Jekyll version

Run build.sh with the version and desired dependencies. Unfortunately, there is no reliable way to fully determine all required dependencies, except for trial and error.

Usage: ./build.sh VERSION [INJECT_DEPS] [BUNDLER_DEPS]
Compiles Jekyll into a single .exe file for Windows with OCRA.

  VERSION       Specifies the Jekyll version to build. E.g., "2.5.3". For a
                list of versions, use 'gem list "^jekyll$" -ra'.
  INJECT_DEPS   Optional, manually injects dependencies into the executable
                Jekyll file, comma separated. E.g., "webrick,jekyll-watch".
  BUNDLER_DEPS  Optional, manually injects dependencies via Bundler, comma
                separated. E.g., "webrick,jekyll-watch".

This script assumes that you already have installed whatever dependencies that
you are looking to inject.

The following files will be created:

  • jekyll.exe, yours truly.
  • ocra.log, the OCRA log while building Jekyll.
  • release.log, the release information for the build.

Testing

Run test.sh to perform simple tests on the core Jekyll functions. jekyll serve has to be manually tested, as I do not know a reliable way to check the running process in Bash.

Downloads

The versions that I have built manually on my personal Windows machine are v2.5.3, v3.0.5 and v3.1.6. They work fine, and all the steps involved are logged in the release page. However, having a build script properly streamlines the building process.

Subsequent versions are built with the build script on AppVeyor. Their corresponding appveyor.yml can be found in their respective branches.

Check the releases page for downloads.

Note

  • The subcommands docs, import, new-theme are not working or not fully tested. I do not consider them to be a part of the core Jekyll functions, and therefore, have no plans on supporting them.
  • OCRA does not support Ruby 2.2 and above yet. Please check OCRA's GitHub page for confirmation.

Credits

My heartfelt thanks to the other developers and projects for making this possible.

About

A portable Jekyll for Windows

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%