-
Notifications
You must be signed in to change notification settings - Fork 1
144 lines (123 loc) · 5.33 KB
/
export.yml
File metadata and controls
144 lines (123 loc) · 5.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Trigger the workflow on push tags matching "v*"
on:
# Manually trigger the workflow
workflow_dispatch:
jobs:
export_game:
runs-on: ubuntu-latest
permissions: write-all
name: Export Game
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Download rcedit
- name: Download rcedit
run: |
wget https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe
mv rcedit-x64.exe ~/
# Download wine
- name: install wine
run: |
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
sudo apt install --install-recommends winehq-stable
# Download Godot executable for headless operation
- name: Download Godot executable
run: |
wget https://downloads.tuxfamily.org/godotengine/4.2.2/Godot_v4.2.2-stable_linux.x86_64.zip
unzip Godot_v4.2.2-stable_linux.x86_64.zip -d godot_headless
# Download the Godot export templates
- name: Download Godot export templates
run: |
wget https://downloads.tuxfamily.org/godotengine/4.2.2/Godot_v4.2.2-stable_export_templates.tpz
mkdir -p ~/.local/share/godot/export_templates/4.2.2.stable/
mkdir -p godot_export_templates
unzip Godot_v4.2.2-stable_export_templates.tpz -d godot_export_templates
cp godot_export_templates/templates/* ~/.local/share/godot/export_templates/4.2.2.stable/
# Run Godot headless to generate the .godot file for windows
- name: Generate .godot cache file
run: |
./godot_headless/Godot_v4.2.2-stable_linux.x86_64 --path . --headless --export-release "Windows Desktop" "E7RTAHelper.exe"
# Remove godot headless
- name: Remove godot
run: |
rm -r godot_headless
rm -r godot_export_templates
rm Godot_v4.2.2-stable_linux.x86_64.zip
rm Godot_v4.2.2-stable_export_templates.tpz
rm -r python_mac/
rm init_mac.sh
# Change executable icon
- name: Change icon
run: |
convert icon.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico
wine ~/rcedit-x64.exe E7RTAHelper.exe --set-icon icon.ico
# Install 7zip
- name: Install 7zip
run: |
sudo apt install p7zip-full p7zip-rar
# Create a ZIP file containing the entire project
- name: Create ZIP/TAR package of the entire project
run: |
zip -r ../E7RTAHelper_win.zip ./*
7z a ../E7RTAHelper_win.7z ./*
# Create a release on GitHub with the ZIP file
- name: Create release
uses: ncipollo/release-action@v1.14.0
with:
generateReleaseNotes: true
tag: ${{ github.ref_name }}
artifacts: "../E7RTAHelper_win.zip,../E7RTAHelper_win.7z"
allowUpdates: true
# export_mac_game:
# runs-on: ubuntu-latest
# permissions: write-all
# name: Export Mac Game
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# # Download Godot executable for headless operation
# - name: Download Godot executable
# run: |
# wget https://downloads.tuxfamily.org/godotengine/4.2.2/Godot_v4.2.2-stable_linux.x86_64.zip
# unzip Godot_v4.2.2-stable_linux.x86_64.zip -d godot_headless
# # Download the Godot export templates
# - name: Download Godot export templates
# run: |
# wget https://downloads.tuxfamily.org/godotengine/4.2.2/Godot_v4.2.2-stable_export_templates.tpz
# mkdir -p ~/.local/share/godot/export_templates/4.2.2.stable/
# mkdir -p godot_export_templates
# unzip Godot_v4.2.2-stable_export_templates.tpz -d godot_export_templates
# cp godot_export_templates/templates/* ~/.local/share/godot/export_templates/4.2.2.stable/
# # Run Godot headless to generate the .godot file for windows
# - name: Generate .godot cache file
# run: |
# ./godot_headless/Godot_v4.2.2-stable_linux.x86_64 --path . --headless --export-release "macOS" "E7RTAHelper.app"
# # Remove godot headless
# - name: Remove godot
# run: |
# rm -r godot_headless
# rm -r godot_export_templates
# rm Godot_v4.2.2-stable_linux.x86_64.zip
# rm Godot_v4.2.2-stable_export_templates.tpz
# rm -r python/
# rm init_windows.bat
# # Install 7zip
# - name: Install 7zip
# run: |
# sudo apt install p7zip-full p7zip-rar
# # Create a ZIP file containing the entire project
# - name: Create ZIP/TAR package of the entire project
# run: |
# zip -r ../E7RTAHelper_mac.zip ./*
# 7z a ../E7RTAHelper_mac.7z ./*
# # Create a release on GitHub with the ZIP file
# - name: Create release
# uses: ncipollo/release-action@v1.14.0
# with:
# generateReleaseNotes: true
# tag: ${{ github.ref_name }}
# artifacts: "../E7RTAHelper_mac.zip,../E7RTAHelper_mac.7z"
# allowUpdates: true