Compare commits

...

88 commits

Author SHA1 Message Date
d39bf04dcb Merge pull request 'ci-test (working now)' (#2) from ci-test into master
All checks were successful
Export Game
Reviewed-on: #2
2023-04-05 19:20:53 +00:00
f5e67d7103 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game
2023-04-05 19:17:34 +00:00
a89140c454 really adding the file this time lmao
All checks were successful
Export Game
2023-04-05 21:12:36 +02:00
ee509a2ff9 Update .gitignore 2023-04-05 21:11:10 +02:00
6598a97a6c Adding File That cant be created by headless binary and is needed for CI build
All checks were successful
Export Game
2023-04-05 21:07:17 +02:00
c3737fbc33 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game
2023-04-05 18:53:37 +00:00
f1f23de590 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game
2023-04-05 18:41:44 +00:00
cb9bb0068c „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game
2023-04-05 18:38:58 +00:00
8c2402912c „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game
2023-04-05 17:58:27 +00:00
13e6d27bcb „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game
2023-04-05 17:52:25 +00:00
10ccdc6717 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game
2023-04-05 17:43:29 +00:00
0a6bfcfb07 adding dependencies
Some checks failed
Export Game
- godot build depndencies
2023-04-05 17:42:49 +00:00
e2c1192cf1 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game
2023-04-05 15:43:13 +00:00
4525666749 bump build script to 4.0.1
All checks were successful
Export Game
2023-04-05 15:19:37 +00:00
1fbcda623f „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game
2023-04-05 15:05:45 +00:00
1bb3c19e23 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 14:59:46 +00:00
e6f73f8504 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 14:56:30 +00:00
48b8119b38 Merge branch 'master'
All checks were successful
Export Game Job
Conflicts:
	export_presets.cfg
2023-04-05 16:46:42 +02:00
9bf5bc5a19 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 14:20:52 +00:00
c52f6357be „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 14:16:42 +00:00
3334b7734c „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 14:13:44 +00:00
c056bd5db2 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 14:10:34 +00:00
beb6d659da „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 14:07:29 +00:00
d7bde78747 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 14:01:55 +00:00
44a5933e93 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 14:01:10 +00:00
d94256ea3b „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 13:57:23 +00:00
f89904df18 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 13:53:21 +00:00
d71e7508dc „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 13:50:48 +00:00
28fe48ce35 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 13:44:21 +00:00
ad728d4169 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 13:34:30 +00:00
9f5f7a2a21 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 13:31:15 +00:00
895fd8dd35 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 13:28:14 +00:00
e6cdf72ac6 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 13:24:30 +00:00
3297406a6f „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 13:23:21 +00:00
956f2004e4 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 13:17:15 +00:00
048c768f93 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 13:13:10 +00:00
e2a253592d „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 12:55:50 +00:00
b83a2d5b19 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 12:46:59 +00:00
56da4c30f6 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 12:46:18 +00:00
3cd2bb2406 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 12:43:56 +00:00
40a050ebc6 „.gitea/workflows/build.yml“ ändern
All checks were successful
Export Game Job
2023-04-05 12:42:12 +00:00
7e14ca7e40 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 12:35:52 +00:00
6a45b7c733 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 09:55:34 +00:00
fbda9f536f „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 09:47:08 +00:00
61893b8cc7 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 09:41:31 +00:00
14849c9a20 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 09:33:56 +00:00
b3000a193d „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 09:29:21 +00:00
b13cb6acbd „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 09:20:59 +00:00
51f7f01789 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 08:44:26 +00:00
e1a2894d7b „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 08:37:46 +00:00
ae22173e58 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:42:28 +00:00
d252a9d95f „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:36:34 +00:00
56ab0abc8e „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:32:44 +00:00
c7e9a9f1cd „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:30:50 +00:00
f03336cde7 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:21:28 +00:00
79cb86b3b8 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:17:44 +00:00
689eddae1a „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:14:19 +00:00
c6694158ab „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:04:18 +00:00
a3131be9d7 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 07:01:58 +00:00
5f572d37ad „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 06:57:22 +00:00
04f8404ec0 „export_presets.cfg“ ändern
Some checks failed
Export Game Job
2023-04-05 05:38:53 +00:00
61bf9d5e24 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 05:17:25 +00:00
5fbc7462bd „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 05:12:22 +00:00
9b7b5702d8 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 05:11:26 +00:00
c78ade6729 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 05:10:20 +00:00
156fc83ab5 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 05:04:56 +00:00
a7ee811d85 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 05:01:10 +00:00
7ddbe585fd „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 04:55:43 +00:00
1642c8cf4f „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-05 04:53:59 +00:00
7f89391fa3 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-04 20:11:39 +00:00
636b9d3ce7 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-04 20:07:13 +00:00
0615182790 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-04 20:04:49 +00:00
ccf63026b3 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-04 20:03:15 +00:00
e3675dc9bd „.gitea/workflows/build.yml“ ändern
Some checks are pending
Export Game Job
2023-04-04 20:03:03 +00:00
d8b1dbc1f7 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-04 20:02:33 +00:00
855cf18dff „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-04 20:01:35 +00:00
1cb359bdb0 „.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job
2023-04-04 20:00:18 +00:00
6d5b7b30e6 „License.md“ hinzufügen 2023-04-04 19:47:08 +00:00
e148bd8b11 „Readme.md“ ändern 2023-04-04 19:43:43 +00:00
0e267f5c89 „Readme.md“ ändern 2023-04-04 19:40:31 +00:00
beacc2baf2 Add Readme 2023-04-04 21:33:26 +02:00
faf1b6e7a9 Upload Readme Images 2023-04-04 21:32:22 +02:00
03d3456041 Update build.yml
Some checks failed
Linux Export
2023-04-02 22:55:14 +02:00
01ba6c46a0 Update build.yml
Some checks failed
Linux Export
2023-04-02 22:52:30 +02:00
029b329c74 Update build.yml
Some checks failed
Linux Export
2023-04-02 22:49:17 +02:00
ccf0a5bce7 Update build.yml
Some checks failed
Linux Export
2023-04-02 22:48:07 +02:00
0fc6689400 Update export_presets.cfg
Some checks failed
Linux Export
2023-04-02 22:46:03 +02:00
86f0cb1fb0 Adding Workflow and Export Options
Some checks failed
Linux Export
2023-04-02 22:44:55 +02:00
8 changed files with 115 additions and 0 deletions

BIN
.gitea/Screenshot_Game.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,81 @@
name: "godot-ci export"
on: push
jobs:
export_game:
runs-on: ubuntu-latest
name: Export Game
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v3.3.0
- name: Install Packages
id: wine_install
run: |
apt update -y && apt upgrade -y
apt install -y wine64 nodejs p7zip-full ca-certificates tree jq curl zip
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
- name: Download Godot build-libs
run: |
mkdir -p /root/.local/share/godot/
wget -nv https://github.com/godotengine/godot/releases/download/4.0.2-stable/Godot_v4.0.2-stable_linux.x86_64.zip -O "/root/.local/share/godot/godot.zip"
wget -nv https://github.com/godotengine/godot/releases/download/4.0.2-stable/Godot_v4.0.2-stable_export_templates.tpz -O /root/.local/share/godot/godot_templates.tpz
- name: Setup Godot build-libs
run: |
7z x /root/.local/share/godot/godot.zip -o/root/.local/share/godot/godot_executable -y
chmod +x /root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64
unzip /root/.local/share/godot/godot_templates.tpz -d /root/.local/share/godot
mv /root/.local/share/godot/templates /root/.local/share/godot/4.0.2.stable
mkdir -p /root/.local/share/godot/export_templates
mv /root/.local/share/godot/4.0.2.stable /root/.local/share/godot/export_templates
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 --version
- name: Export for Linux
run: |
mkdir -p ./builds/linux/
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Linux/X11" ./builds/linux/Game.x86_64
- name: Package for Linux
run: |
cd builds
tar -czvf linux.tar.gz -C linux/ .
- name: Export for Windows
run: |
mkdir -p ./builds/windows/
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Windows Desktop" ./builds/windows/Game.exe
- name: Package for Windows
run: |
cd builds
cd windows; zip -r ../windows.zip *
cd ..
- name: Create Release
run: |
echo "Getting last Release Tag"
VERSION=$(curl -X 'GET' 'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?page=1&limit=1' -H 'accept: application/json' -H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' )
echo $VERSION | jq -r '.[0].tag_name'
VERSION=$(echo $VERSION | jq -r '.[0].tag_name' | awk -F. -v OFS=. '{$NF += 1 ; print}')
echo "Generate new Release with tag: $VERSION"
ID=$(curl -X 'POST' \
'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \
-d "{
\"body\": \"Automated Build\",
\"draft\": true,
\"name\": \"Automated Release $VERSION\",
\"prerelease\": true,
\"tag_name\": \"$VERSION\"
}")
ID=$(echo $ID | jq -r '.id')
echo $ID Upload Linux
curl -X 'POST' \
"https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases/$ID/assets?name=Linux.tar.gz" \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \
-F 'attachment=@./builds/linux.tar.gz;type=application/gzip'
echo $ID Upload Windows
curl -X 'POST' \
"https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases/$ID/assets?name=Windows.zip" \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \
-F 'attachment=@./builds/windows.zip;type=application/gzip'

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
# Godot 4+ specific ignores # Godot 4+ specific ignores
.godot/ .godot/
!.godot/global_script_class_cache.cfg

View file

@ -0,0 +1,13 @@
list=Array[Dictionary]([{
"base": &"ColorRect",
"class": &"Tile",
"icon": "",
"language": &"GDScript",
"path": "res://Scripts/Tile.gd"
}, {
"base": &"Resource",
"class": &"TileColors",
"icon": "",
"language": &"GDScript",
"path": "res://Scripts/TileColors.gd"
}])

9
License.md Normal file
View file

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2023 Snoweuph
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

11
Readme.md Normal file
View file

@ -0,0 +1,11 @@
# Snake
## Info
- made with Godot `4.0.1`
- [Color Pallet](https://lospec.com/palette-list/2bit-demiboy)
## Screenshots
![main Menu](https://git.euph.dev/Snoweuph/Snake/raw/branch/master/.gitea/Screenshot_Main%20Menu.png)
![Settings](https://git.euph.dev/Snoweuph/Snake/raw/branch/master/.gitea/Screenshot_Settings.png)
![Game](https://git.euph.dev/Snoweuph/Snake/raw/branch/master/.gitea/Screenshot_Game.png)