outline-stroke-cli
outline-stroke-cli copied to clipboard
Provide standalone package
First off, thanks for this fantastic package!
I want to use it as a dependency in python, and it would be better if I could install without npm, as a standalone package.
Luckily, this is easy achieve:
sudo npm i pkg -g pkg # install pkg globally
git clone https://github.com/elrumordelaluz/outline-stroke-cli.git && cd outline-stroke-cli # clone this repo
npm install # install dependencies
pkg . # create standalone executable
mkdir outline-stroke-cli-1.1.1 && cp outline-stroke-cli-linux outline-stroke-cli-1.1.1 # prepare deployment
mkdir outline-stroke-cli-1.1.1/node_modules && cp -r node_modules/sharp outline-stroke-cli-1.1.1/node_modules # the sharp module cannot be bundled automatically
tar cfJ outline-stroke-cli-1.1.1.tar.xz outline-stroke-cli-1.1.1/ # compress
Final tar.xz size: uncompressed: 115M, compressed: 30M
Usage:
wget https://cloud.roder.casa/s/m9Njjpe5Y5jkH4X/download -O outline-stroke-cli-1.1.1.tar.xz # Download
tar -Jxvf outline-stroke-cli-1.1.1.tar.xz # Extract
./outline-stroke-cli-1.1.1/outline-stroke-cli-linux in.svg # Run
I was wondering if you could routinely create these packages and add them to github releases? Maybe, stroke can be persuaded to make their package pkg-friendly (issue).