Skip to content

Commit

Permalink
ready to build
Browse files Browse the repository at this point in the history
  • Loading branch information
fengshuo2004 committed May 6, 2020
1 parent 9d29e94 commit 97c853e
Show file tree
Hide file tree
Showing 16 changed files with 1,049 additions and 417 deletions.
45 changes: 37 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,44 @@
# Scratch 3 to HTML Converter
# Scratch 3 HTML 转换器

![screenshot of the converter running](resources/screenshot.png)
## 总览

> ⚠ WARNING: WORK IN PROGRESS! NOT YET USABLE! CHINESE LANG UI ONLY!
SB3toHTML通过将一个Scratch项目连同所需的scratch虚拟机打包在一起,将这个项目转换成独立的单个html文件。

Core code forked from **Sheep_maker**'s repository, this program converts Scratch 3 projects (.sb3 files) into stand-alone HTML files.
相比于分发sb3项目文件,直接分发html文件解决了需要额外安装Scratch编辑器的不便(仍然需要支持HTML5的网页浏览器);同时也能提高抄袭源码的成本,一定程度上保护您的项目。

I used NodeJS Electron to pack this program into a Windows/MacOS/Linux Executable, along with a cosmetic overhual of the original UI.

> ⚠ 警告:仍在开发过程中,尚不能运行!界面语言仅限中文!
![screenshot of the converter running](assets/screenshot.png)

核心代码分叉自Sheep_maker的仓库,本程序把Scratch 3项目(.sb3文件)转换为独立的HTML文件。

我使用NodeJS Electron将此程序打包成Windows/MacOS/Linux执行档,还顺便对原本的用户界面进行了美观性打磨。
我使用NodeJS Electron将此程序打包成Windows/MacOS/Linux执行档,还顺便对原本的用户界面进行了美观性打磨。

## 开发

如果您想自己开发和构建本项目,您需要NodeJS环境和NPM包管理器。遵循以下步骤:

1. 用git克隆这个仓库到本地:

```bash
git clone https://github.com/fengshuo2004/SB3toHTML.git
```

2. NPM安装需要的依赖:

```bash
cd SB3toHTML
npm install
```

3. 启动Electron:

```bash
electron .
```
4. 完成!

## 计划

将来会支持这些新功能(按重要度从大到小排列)

- [ ] 支持拖动文件进窗口作为sb3项目
- [ ] 将分支更新到与SheepTester的Master平行,这会带来如连接到云变量服务器、加载中占位图等新功能
File renamed without changes
Binary file added assets/electron.ico
Binary file not shown.
Binary file added assets/icon.ico
Binary file not shown.
Binary file added assets/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
162 changes: 0 additions & 162 deletions download.js

This file was deleted.

Loading

0 comments on commit 97c853e

Please sign in to comment.