BSD 2-Clause "Simplified" License

项目介绍

tmedwards/sugarcube-2 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 BSD 2-Clause "Simplified" License 许可证,目前获得 271 个 Star、60 次 Fork。

仓库全名
tmedwards/sugarcube-2
开源许可证
BSD 2-Clause "Simplified" License
Star 数
271
Fork 数
60
未关闭 Issue
74

README 摘要

SugarCube v2 SugarCube is a free (gratis and libre) story format for Twine/Twee. Downloads and documentation may be found at SugarCube website. If you believe that you've found a bug in SugarCube or simply wish to make a suggestion, you may do so by creating a new issue. SugarCube also has a work log that may be of interest. INSTALLATION You may either download one of the precompiled packages from SugarCube's…

完整内容见 GitHub 原始 README 或本页 。

常见问题

sugarcube-2 用什么语言开发?

主要使用 JavaScript 编写,采用 BSD 2-Clause "Simplified" License 许可证,目前有 271 个 Star。

sugarcube-2 可以免费商用吗?

仓库采用 BSD 2-Clause "Simplified" License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 sugarcube-2 的源码?

可以直接克隆仓库:git clone https://github.com/tmedwards/sugarcube-2.git,默认分支为 develop;安装与运行步骤见仓库 README。

sugarcube-2 最近还在维护吗?

仓库最近一次更新为 3月3日,当前有 74 个未关闭 Issue;Star 数为 271,可作为社区活跃度的参考。

关于

SugarCube is a free (gratis and libre) story format for Twine/Twee.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
404
价值分
178
活跃状态
活跃

语言占比

CSS
JavaScript
Python
Smarty

Release

README

SugarCube v2

SugarCube is a free (gratis and libre) story format for Twine/Twee.

Downloads and documentation may be found at SugarCube website.

If you believe that you’ve found a bug in SugarCube or simply wish to make a suggestion, you may do so by creating a new issue. SugarCube also has a work log that may be of interest.

INSTALLATION

You may either download one of the precompiled packages from SugarCube’s website or build SugarCube from source—see BUILDING FROM SOURCE below.

BUILDING FROM SOURCE

If you want to build SugarCube from scratch, rather than grabbing one of the pre-built packages off of its website, then these instructions are for you.

SugarCube uses Node.js (currently ≥v16) as the core of its build system, so you’ll need to install it if you don’t already have it. Additionally, to retrieve SugarCube’s source code from this repository, you’ll need to install Git.

  1. Download and install the Node.js JavaScript runtime (https://nodejs.org/)
  2. Download and install the Git source control management tool (https://git-scm.com/)

Once all the tooling has been installed and set up, the next step is to fetch the SugarCube source code. Open a shell to wherever you wish to store the code and run the following command to clone the repository:

git clone https://github.com/tmedwards/sugarcube-2.git

Next, change to the directory that the previous command created, which is your local clone of the repository:

cd sugarcube-2

There are two major branches within the repository:

  • master: The stable release branch
  • develop: The main development branch

Be sure to switch to the branch you wish to work on by issuing the appropriate git checkout command.

Once you’re on the correct branch, fetch SugarCube’s development dependencies:

npm install

You should now have SugarCube and all dependencies downloaded, so you may build it by running the following command:

node build.js

Assuming that completed with no errors, the story format, in both Twine 1 and Twine 2 flavors, should be output to the build directory. Congratulations!

NOTE: SugarCube’s development dependencies are occasionally updated. If you receive errors when attempting to build, then you probably need to update your cached dependencies. You may do this via the npm update --save -D command or, in extreme cases, by first running npm uninstall and then npm install.

TIP: If you’d like additional options when building—e.g., debug builds, limiting the build to a particular version of Twine, etc.—then you may request help from build.js by specifying the help (-h, --help) option. For example:

node build.js -h

评论

暂无评论