This is a CLI tool for packaging Tyranoscript apps.
The official tool “Tyranno Rider” is difficult to link with external tools. Since this tool is a simple CLI tool, it can be easily integrated with CI / CD tools.
- Tyranoscript official web site: https://tyrano.jp/
- GitHub: https://github.com/ShikemokuMK/tyranoscript
Currently only packaging for windows is possible. macOS packaging may eventually support it.
Please refer to the NW.js documentation for information on packaging desktop apps.
I think that more advanced packaging can be done by using nwjs-builder-phoenix
.
If you are unfamiliar with npm, do the following.
npm install -g tyranoscript-packager
If you understand npm well and manage the tyrano app with npm, it is better to install it locally.
npm install --save-dev tyranoscript-packager
Caution! : Note that the windows and macos packages distributed on the official site contain node_modules/
and package.json
, so they are overwritten by local installation.
If you don't want to install it, you can use npm link
. You may need to specify sudo
.
git clone git@github.com:fuji44/tyranoscript-packager.git
cd tyranoscript-packager
npm install
npm link
Just run the tyrano
command at the root of the application.
If successful, a file packaged in ./dest/
is created.
The application root directory should have index.html
, data/
, and tyrano/
.
See the command help (-h
) for details.
cd $tyrano_app_root_dir
tyrano
This is an example of using via npm script.
Describe the command in package.json
...
"scripts": {
"package": "tyrano -d ./export -w 960 -H 640 -r"
}
It can be used simply by executing it with the npm run
command.
npm run package