Skip to content

Commit

Permalink
move to godot folder
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed Jun 17, 2023
1 parent f4a723a commit e8b93b8
Show file tree
Hide file tree
Showing 106 changed files with 17 additions and 141 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Release

on:
workflow_dispatch: {}
# push:
# tags:
# - "v*.*.*"
push:
tags:
- "v*.*.*"

jobs:
release:
Expand Down Expand Up @@ -44,11 +43,8 @@ jobs:
sed 's@keystore/release_user=".*"@keystore/release_user="'$ANDROID_KEYSTORE_USER'"@g' -i export_presets.cfg
sed 's@keystore/release_password=".*"@keystore/release_password="'$ANDROID_KEYSTORE_PW'"@g' -i export_presets.cfg
- name: Prepare Build
run: ./addons/debug/prepare-build.sh $GITHUB_REF_NAME

- name: Build
run: ./scripts/build-channel.sh $CHANNEL
run: ./scripts/build-channel.sh $CHANNEL $GITHUB_REF_NAME

- name: Publish Itch
if: env.BUTLER_API_KEY && env.USER && env.GAME && !contains(github.ref, '-rc')
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:
name: Run Unit Tests
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:3.5.1
image: barichello/godot-ci:4.0.3
steps:
- uses: actions/checkout@v3
with:
lfs: true
- run: sh scripts/ci/test.sh
submodules: true
- run: sh scripts/test.sh
timeout-minutes: 5
3 changes: 2 additions & 1 deletion .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ jobs:
name: Publish Web
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:3.5.1
image: barichello/godot-ci:4.0.3
steps:
- uses: actions/checkout@v3
with:
lfs: true
submodules: true
- run: ./scripts/ci/prepare-templates.sh
- run: ./scripts/ci/build-channel.sh web
- run: apt-get update && apt-get install -y rsync
Expand Down
1 change: 0 additions & 1 deletion _sprites/.gdignore

This file was deleted.

21 changes: 0 additions & 21 deletions addons/debug/prepare-build.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion scripts/.gdignore

This file was deleted.

2 changes: 2 additions & 0 deletions scripts/build-channel.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/sh

CHANNEL=${CHANNEL:-$1}
VERSION=${$2:-dev}

# mkdir ~/.config
# cp /root/.config/godot ~/.config -r
cd godot
mkdir -v -p build/$CHANNEL
godot --export $CHANNEL
2 changes: 1 addition & 1 deletion scripts/combine-sprites.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

python ./scripts/anim_combine.py -d ./_sprites -o ./assets -c 10
python ./scripts/anim_combine.py -d ./_sprites -o ./godot/assets -c 10
1 change: 1 addition & 0 deletions theme/generate-theme.sh → scripts/generate-theme.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh

cd godot
sass theme/theme.scss theme/theme.css
godot -s addons/godot-css-theme/convert.gd --input="res://theme/theme.css"
2 changes: 1 addition & 1 deletion scripts/init-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ -z $GAME_NAME ]; then
fi

echo "Setting game name to $GAME_NAME"
sed -e "/config\/name/ s/\".*\"/\"$GAME_NAME\"/" -i project.godot
sed -e "/config\/name/ s/\".*\"/\"$GAME_NAME\"/" -i godot/project.godot
sed -e "/GAME=/ s/\".*\"/\"$GAME_NAME\"/" -i scripts/publish.sh

# sed -i "s/##VAR_GAME_NAME/$GAME_NAME/g" project.godot
Expand Down
4 changes: 2 additions & 2 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ build_channels() {
github_release() {
echo "Releasing version $VERSION to github for $CHANNELS"

cd build
cd godot/build
mkdir -p gh-releases
for CHANNEL in "${CHANNELS[@]}"; do
echo "Archiving $CHANNEL"
Expand All @@ -59,7 +59,7 @@ itch_release() {

for CHANNEL in "${CHANNELS[@]}"; do
echo "Releasing $CHANNEL"
butler push build/$CHANNEL kuma-gee/$GAME:$CHANNEL --userversion $VERSION
butler push godot/build/$CHANNEL kuma-gee/$GAME:$CHANNEL --userversion $VERSION
done
}

Expand Down
2 changes: 1 addition & 1 deletion addons/i18n/translations.sh → scripts/translations.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

DIR="addons/i18n"
DIR="godot/addons/i18n"

pybabel extract -F "$DIR/babelrc" -k text -k LineEdit/placeholder_text -k tr -k items --no-location -o "$DIR/messages.pot" \
src "$DIR/menu"
Expand Down
102 changes: 0 additions & 102 deletions tools/SpriteAnimTool.gd

This file was deleted.

0 comments on commit e8b93b8

Please sign in to comment.