Skip to content

Commit

Permalink
Update ren'py to 8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AkibaAT committed Feb 27, 2024
1 parent 77ab5dc commit 136b5a3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release Workflow

env:
renpy_version: "8.1.1"
renpy_version: "8.2.0"
itch_project_name: akibaokapi/after-passion-sfw
build_name: AfterPassion
android_build_name: games.akiba.afterpassion
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
java-version: '21'
- name: Cache renpy
id: cache-renpy
uses: actions/cache@v3
Expand All @@ -39,13 +39,13 @@ jobs:
- name: Build
run: |
unset ANDROID_NDK_HOME
wget -qO- https://github.com/kobaltcore/renkit/releases/download/v3.2.0/renkit-linux-amd64.tar.gz | sudo tar xz -C /usr/local/bin
[ ! -d ~/.renutil ] && renutil install -v ${{ env.renpy_version }}
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/kobaltcore/renkit/releases/download/v4.0.1/renkit-installer.sh | sh
export PATH=~/.cargo/bin:$PATH
[ ! -d ~/.renutil ] && renutil install ${{ env.renpy_version }}
mkdir -p ~/.renutil/${{ env.renpy_version }}/rapt/project/app/
echo -n '${{ secrets.ANDROID_KEYSTORE }}' | base64 --decode > android.keystore
sed -i 's#{key_apk}#${{ secrets.ANDROID_KEYSTORE }}#' renconstruct.toml
echo "define config.version = \"${{ steps.get-release-version.outputs.version }}\"" >> game/options.rpy
renconstruct build -i . -o .artifacts/ -c renconstruct.toml
rm android.keystore
renconstruct build -c renconstruct.toml . .artifacts/
- name: Set up butler
uses: jdno/setup-butler@v1
- name: Publish builds to itch.io
Expand All @@ -57,6 +57,7 @@ jobs:
sleep 30
butler push .artifacts/${{ env.build_name }}-${{ steps.get-release-version.outputs.version }}-mac.zip ${{ env.itch_project_name }}:mac --userversion ${{ steps.get-release-version.outputs.version }}
sleep 30
butler push .artifacts/${{ env.android_build_name }}-release.apk ${{ env.itch_project_name }}:android --userversion ${{ steps.get-release-version.outputs.version }}
apk_path=`find ./.artifacts -name "${{ env.android_build_name }}*.apk"`
butler push $apk_path ${{ env.itch_project_name }}:android --userversion ${{ steps.get-release-version.outputs.version }}
env:
BUTLER_API_KEY: ${{ secrets.ITCHIO_API_KEY }}
26 changes: 13 additions & 13 deletions renconstruct.toml
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
[tasks.clean]
enabled = false
priorities = { post_build = 0 } # the priority that determines the orders tasks will run in, defaults to 0
on_builds = ["pc", "win", "linux", "mac", "web", "steam", "market", "android_apk", "android_aab"] # builds this task should run for, defaults to all available builds

[tasks.notarize] # required if matching task is enabled
type = "notarize"
enabled = false
priorities = { post_build = 10 } # the priority that determines the orders tasks will run in, defaults to 10
on_builds = ["mac"] # builds this task should run for, defaults to "mac"
bundle_identifier = "com.my-game" # the bundle ID of your came, typically in reverse domain notation
bundle_id = "com.my-game" # the bundle ID of your came, typically in reverse domain notation
key_file = "certificates/private-key.pem" # the path to the private key file generated during the provisioning process
cert_file = "certificates/developerID_application.cer" # the path to the Apple-generated certificate file generated during the provisioning process
app_store_key_file = "certificates/app-store-key.json" # the path to the combined App Store key file generated during the provisioning process
json_bundle_file = "certificates/renotize.json" # the path to the combined certificate file. replaces the key, cert and app store files above

[tasks.keystore] # required if matching task is enabled
enabled = false
type = "keystore"
enabled = true
priorities = { pre_build = 0 } # the priority that determines the orders tasks will run in, defaults to 0
on_builds = ["android_apk", "android_aab"] # builds this task should run for, defaults to all android builds
keystore_apk = "<base64-encoded keystore file>" # the base-64 encoded binary keystore file for the APK bundles
keystore_aab = "<base64-encoded keystore file>" # the base-64 encoded binary keystore file for the AAB bundles
keystore_apk = "{key_apk}" # the base-64 encoded binary keystore file for the APK bundles
keystore_aab = "" # the base-64 encoded binary keystore file for the AAB bundles

[tasks.convert_images]
type = "convert_images"
enabled = false
format = "webp" # webp or avif
priorities = { pre_build = 10 } # the priority that determines the orders tasks will run in, defaults to 10
on_builds = ["pc", "win", "linux", "mac", "web", "steam", "market", "android_apk", "android_aab"] # builds this task should run for, defaults to all available builds
# extensions: a list of file extensions to convert
# recursive: scans directories recursively if enabled, otherwise only scans the immediate directory
# lossless: converts to lossless WebP if enabled, otherwise converts to lossy WebP
"game/images/sprites" = { extensions = ["png", "jpg"], recursive = true, lossless = true } # default values
"game/images/backgrounds" = { lossless = false }
"game/images" = { } # all parameters are optional
paths."game/images/sprites" = { extensions = ["png", "jpg"], recursive = true, lossless = true } # default values
paths."game/images/backgrounds" = { lossless = false }
paths."game/images" = { } # all parameters are optional

[tasks.custom_task_1] # Maps to Python class CustomTask1Task (upper camel case + "Task" suffix)
type = "custom"
enabled = false
priorities = { pre_build = 0, post_build = 0 } # priorities per build stage to determine ordering, defaults to 0
on_builds = ["pc", "win", "linux", "mac", "web", "steam", "market", "android_apk", "android_aab"] # builds this task should run for, defaults to all available builds
Expand All @@ -52,4 +51,5 @@
clear_output_dir = false # whether to clear the output directory on startup

[renutil]
version = "8.1.1" # the Ren'Py version to use (required)
version = "8.2.0" # the Ren'Py version to use (required)
update_pickle = true # causes renutil to update the Pickle version from 2 to 5 for speed improvements at the cost of incompatiblity with Ren'Py 7.x files

0 comments on commit 136b5a3

Please sign in to comment.