Skip to content

Commit df4e070

Browse files
committed
Add RenPy to full package
1 parent 23a9368 commit df4e070

File tree

5 files changed

+66
-2
lines changed

5 files changed

+66
-2
lines changed

.github/workflows/build_full_package.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,25 @@ jobs:
9595
rm -rf windows-x64/ffmpeg-master-latest-win64-lgpl-shared
9696
rm -f ffmpeg-master-latest-win64-lgpl-shared.zip
9797
98+
- name: "Download Ren'Py SDK"
99+
uses: robinraju/release-downloader@v1.10
100+
with:
101+
repository: "PrepPipe/preppipe-thirdparty-bins"
102+
tag: "latest"
103+
fileName: "renpy-sdk.tar.bz2"
104+
tarBall: false
105+
zipBall: false
106+
out-file-path: "."
107+
- name: "Extract Ren'Py SDK"
108+
shell: bash
109+
run: |
110+
tar -xf renpy-sdk.tar.bz2
111+
mv renpy-*-sdk renpy-sdk
112+
mkdir -p windows-x64/licenses
113+
cp renpy-sdk/LICENSE.txt windows-x64/licenses/renpy_LICENSE.txt
114+
mv renpy-sdk windows-x64
115+
rm -f renpy-sdk.tar.bz2
116+
98117
- name: "Combine all files and upload"
99118
shell: bash
100119
env:
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "Test CI Setup"
2+
on:
3+
workflow_dispatch:
4+
5+
# make sure:
6+
# 1. required git tags are pushed
7+
# 2. github actions are enabled and can update releases
8+
# use this so that we don't waste time on actually building the package
9+
10+
env:
11+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
12+
RELEASE_TAG: ${{ inputs.release_tag || 'latest' }}
13+
14+
jobs:
15+
test_ci_setup:
16+
name: "Test CI Setup"
17+
runs-on: "ubuntu-latest"
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: fetch tags
21+
run: git fetch --prune --unshallow --tags
22+
shell: bash
23+
- name: environment dump
24+
run: |
25+
git --version
26+
git describe --tags
27+
shell: bash
28+
- name: Create dummy file
29+
shell: bash
30+
run: |
31+
echo "test" > test.txt
32+
- name: Test release
33+
uses: "marvinpinto/action-automatic-releases@latest"
34+
with:
35+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
36+
automatic_release_tag: "${{ env.RELEASE_TAG }}"
37+
prerelease: true
38+
title: "Test release"
39+
files: |
40+
test.txt

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ src/preppipe/assets/_install
168168
# generated ui forms
169169
src/preppipe_gui_pyside6/forms/generated
170170

171+
# third-party programs we need to pin relative paths
172+
/renpy-sdk
173+
171174
# gui settings
172175
*.settings.db
173176
*.settings.db.*

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ English users please use the [Github Discussions page](https://github.com/PrepPi
6767

6868
语涵编译器在运行时需要使用 `ffmpeg` 进行音视频的格式转换。请确保程序能在运行时找到它,比如把路径加到 `PATH` 中。
6969

70+
调试 Ren'Py 引擎整合相关的功能时,请将 [Ren'Py SDK](https://renpy.org/latest.html) 下载并解压到仓库根目录下 `renpy-sdk` 目录中。`renpy-sdk` 已在 `.gitignore` 中。注意,解压 Ren'Py 提供下载的压缩包时,解压的路径会带上 Ren'Py 的版本号 (比如 `renpy-8.5.2-sdk`),请将该版本号从目录名称中删除。语涵编译器的发布包也会将 Ren'Py SDK 解压后置于 `renpy-sdk` 目录下。
71+
7072
开发时请确保本仓库里的 `src` 目录在 `PYTHONPATH` 中,比如:(假设这个 `preppipe` 仓库在 `/path/to/preppipe`)
7173
```
7274
export PYTHONPATH=/path/to/preppipe/src

ci/README_dist.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ This project is open-sourced with Apache-2.0 License. For more details about the
1515
内嵌素材以 CC0 许可发布。您可以不受限制地在任何(包括商用)作品中使用这些素材。 CC0 许可的详情请见 https://creativecommons.org/publicdomain/zero/1.0/legalcode
1616
All embedded assets are released with CC0 license. You can use these assets in any project (including commercial ones) without restrictions. For more details about CC0 license, see https://creativecommons.org/publicdomain/zero/1.0/legalcode
1717

18-
该项目的发行包内包含了由 LGPL 许可发布的 FFmpeg 可执行文件,以及许多第三方 Python 包。您可在 licenses 目录下找到所有项目的许可文件。
19-
This release bundles FFmpeg executables licensed in LGPL and numerous third-party Python packages. You can find all license files under the "licenses" directory.
18+
该项目的发行包内包含了由 LGPL 许可发布的 FFmpeg 可执行文件以及 MIT 许可发布的 Ren'Py SDK,以及许多第三方 Python 包。您可在 licenses 目录下找到所有项目的许可文件。
19+
This release bundles FFmpeg executables (LGPL), Ren'Py SDK (MIT), and numerous third-party Python packages. You can find all license files under the "licenses" directory.

0 commit comments

Comments
 (0)