Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/native decorations #745

Closed
wants to merge 3,239 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3239 commits
Select commit Hold shift + click to select a range
4920e41
Fix warehouse and granary image flags
crudelios Apr 24, 2024
a35dd15
Fix some bugs with the mission selection
crudelios Apr 24, 2024
1210898
Fix tooltips not showing on game screenshots
crudelios Apr 24, 2024
ad1f7dd
Update spanish.c (#1079)
BCfplox Apr 24, 2024
6982bd8
Fix rich text links not displaying properly
crudelios Apr 25, 2024
5d8c1a6
Fix importing events with "Roma" as a custom city name
crudelios Apr 25, 2024
b82d600
Minor asset fixes
Areldir Apr 26, 2024
694e978
Fix "allow fetch from armory" not working and barracks priority
crudelios Apr 26, 2024
081fe6f
Open Pandora's Box
crudelios Apr 26, 2024
18378cd
Small fixes to map editor cheat
crudelios Apr 27, 2024
2aa1fa8
Further optimise monument construction assets
Areldir Apr 27, 2024
6a1d401
Fix minor visual issues
Areldir Apr 27, 2024
969c716
Fix buffer overflow
Keriew Apr 27, 2024
e6b3c37
Standarize military display
Keriew Apr 27, 2024
aaaacf8
Even more asset optimisations
Areldir Apr 27, 2024
23fea3f
Update English.c
Areldir Apr 27, 2024
14220ba
Fix a warning
Keriew Apr 27, 2024
18c2194
Fix minor inconsistency in English.c
Areldir Apr 27, 2024
4277509
Even, even more asset optimisations
Areldir Apr 28, 2024
83f0113
Fix dangling pointer when loading custom variables
crudelios Apr 28, 2024
4b5d60e
Revert "Fix tooltips not showing on game screenshots"
crudelios Apr 28, 2024
4069f82
Add a warning about missing armory
Keriew Apr 29, 2024
aea4714
Debug editor: allow adding/renaming/deleting custom variables if they…
crudelios Apr 29, 2024
851c1b3
Update russian.c
MSTVD Apr 30, 2024
5332d1c
Fix russian.c
MSTVD Apr 30, 2024
ed1a04b
Last small fix!
MSTVD Apr 30, 2024
ca0edb5
More small changes to custom variables editing
crudelios Apr 30, 2024
4363e86
Small update to the metainfo
crudelios Apr 30, 2024
a4a17d1
Update french.c (#1082)
Ouaz May 1, 2024
759345c
Update assets
Areldir May 2, 2024
40a9198
Fix small visual issue
Areldir May 2, 2024
e7ac05d
Fix barracks priority issues
crudelios May 2, 2024
b0c12e4
Granary/warehouse permissions buttons - tooltips now respect the curr…
crudelios May 2, 2024
2db3443
Disable uneeded resources on tutorial mission Brundisium
crudelios May 2, 2024
ce2bd27
Very slight change to roaming walker mechanism
crudelios May 3, 2024
a458b2b
Fix granary permissions tooltips
crudelios May 3, 2024
01d61b2
Allow creating and removing directories on Android
crudelios May 3, 2024
2966e3a
Update spanish.c (#1083)
BCfplox May 3, 2024
bd29105
Update English.c
Areldir May 3, 2024
de297c1
Update assets
Areldir May 3, 2024
25c1267
Update spanish.c (#1085)
BCfplox May 3, 2024
678c6ba
Fix android build not working
crudelios May 4, 2024
a9bba9b
Fix android part two
crudelios May 4, 2024
a1b74e5
Update English.c
Areldir May 5, 2024
ebb6d42
Fix swordsmen and archers being immune to missiles
Keriew May 5, 2024
e15aa98
Update english.c (#1086)
berseker May 5, 2024
deed2d6
Update russian.c
MSTVD May 5, 2024
c5744e9
Adjust roamer skewed path caused by building size
Keriew May 5, 2024
b0c05df
Improve overall code safety
crudelios May 8, 2024
5b7491c
Merge remote-tracking branch 'upstream/master' into augustus-master
crudelios May 8, 2024
16eee04
Fix build
crudelios May 8, 2024
224f8e9
Add Flatpak and Windows ARM64 builds
crudelios May 8, 2024
4700e58
Only upload assets once per build
crudelios May 8, 2024
bb087fc
Add support for user directories (#1090)
crudelios May 16, 2024
4f6fc78
Try to fix android issues with user paths
crudelios May 16, 2024
0d6d66b
Fix user directories on android
crudelios May 17, 2024
3023feb
Some more file manager fixes
crudelios May 17, 2024
766ba6e
Fix #1089
crudelios May 17, 2024
8835932
Fix not being able to select a custom variable for use
crudelios May 17, 2024
19660b7
Update italian.c (#1087)
berseker May 17, 2024
9250cdd
Update assets
Areldir May 18, 2024
657c726
Implement workcamp overseer assets
Keriew May 18, 2024
a7a699f
Change armory cartpusher name
Keriew May 18, 2024
d0e44fc
Update English.c
Areldir May 18, 2024
20b055a
Move flatpak json file to res
crudelios May 18, 2024
d00c187
Fix some warnings
crudelios May 18, 2024
dab2568
Update assets
Areldir May 19, 2024
665bfca
Update russian.c
MSTVD May 19, 2024
bb573bb
Update spanish.c (#1091)
BCfplox May 19, 2024
4a2cf31
Improve metainfo file
crudelios May 19, 2024
1c3c014
Fix some more warnings
crudelios May 20, 2024
1c6a2cd
Update assets
Areldir May 20, 2024
adcef0c
Actually fix barracks priority (hopefully!)
crudelios May 21, 2024
c7c8300
Fix large temples being available on maps without marble
crudelios May 21, 2024
75c1476
Fix many compiler warnings
crudelios May 21, 2024
c131128
Fix custom video and audio for scenarios not working
crudelios May 22, 2024
f74bdc0
Fix crash
crudelios May 22, 2024
f7848e7
Fix exported scenario event resource names being off by one char on t…
crudelios May 22, 2024
7330327
Fix "replay map" on pause menu not working properly on custom campaig…
crudelios May 22, 2024
4167570
FIx build
crudelios May 22, 2024
f12fb05
Add ranged attack to legionaries
Keriew May 24, 2024
7f21964
Adjust legionary ranged animation
Keriew May 24, 2024
be78445
Update assets
Areldir May 26, 2024
527b9e6
List box: add support for multiple columns per line
crudelios May 27, 2024
68a1274
Update french.c (#1096)
Ouaz May 27, 2024
fa4c59d
Fix order of arguments to calloc() (#1097)
sulix May 27, 2024
0b5c9c8
Move allowed buildings list to list_box
crudelios May 27, 2024
cb4ece2
Update russian.c (#1095)
eugenikus8 May 27, 2024
2cd7ebd
Change a lot of ints to unsigned ints
crudelios May 27, 2024
cfa0215
Custom empire: fix "refresh empire" not working
crudelios May 29, 2024
4ba5532
Refactor: use list_box for the resources on the trade advisor window
crudelios May 29, 2024
e5c653a
Change lighthouse keeper image
Keriew May 30, 2024
23133de
Add support for removing items from arrays
crudelios May 31, 2024
c422b7f
Fix some issues with array_remove_item
crudelios May 31, 2024
8f5cbb3
Move price changes and demand changes to list box
crudelios May 31, 2024
950a335
Update assets
Areldir Jun 1, 2024
eacc7d1
Update English.c
Areldir Jun 1, 2024
664a6b9
Re-order some strings in English.c
Areldir Jun 1, 2024
e5c1765
Small UI tweak
Areldir Jun 1, 2024
6370783
Use list_box for invasions list
crudelios Jun 3, 2024
08ebcf7
Implement quartermaster assets
Keriew Jun 3, 2024
90f7933
Add placeholder Quartermaster attack animations
Areldir Jun 3, 2024
c712b84
Add placeholder attack animation
Keriew Jun 3, 2024
4df09f7
Add UI buttons for fort formations
Areldir Jun 4, 2024
c552075
Fix small bug
crudelios Jun 4, 2024
3c93635
Try to fix erroneous layer offset position calculations
crudelios Jun 4, 2024
a37e584
Minor rebalance of auxiliary archers and some enemy types
Areldir Jun 5, 2024
4737f4f
Replace list_box with a new grid_box in the editor, which is better s…
crudelios Jun 5, 2024
5071291
Update assets
Areldir Jun 15, 2024
ec7cc28
Update assets
Areldir Jun 15, 2024
87e395a
Fix minor visual issue
Areldir Jun 15, 2024
907785f
Minor rebalance of mini-monument construction costs
Areldir Jun 15, 2024
5ac326d
Optimise assets
Areldir Jun 16, 2024
9d6c4f6
Update assets
Areldir Jun 18, 2024
92021c1
Rebalance mini-monument construction resources
Areldir Jun 18, 2024
d9e4df5
Add second construction phase to Oracles
Areldir Jun 18, 2024
ea8a247
Fix build error
Areldir Jun 18, 2024
54d06d5
Add second construction phase to Large temples, Nymphaea and Small ma…
Areldir Jun 18, 2024
c922cbf
Fix build, again (maybe)
Areldir Jun 18, 2024
947852d
Have roads turn into Nymphaeum construction site
Areldir Jun 18, 2024
ea6c26e
Add second construction phase to City mint, rebalance associated cons…
Areldir Jun 18, 2024
b999fea
Remove redundant/duplicate translation lines
Areldir Jun 18, 2024
95e03cf
Fix build
Areldir Jun 18, 2024
68d0d9e
Fix asset issue
Areldir Jun 18, 2024
f93968d
Minor UI tweaks
Areldir Jun 18, 2024
56bae66
Adjust warehouse selection for monuments
Keriew Jun 18, 2024
12b3b4e
Add missing combat sounds
Keriew Jun 18, 2024
9e58582
Adjust QM stats
MSTVD Jun 18, 2024
08e0346
Adjust combat sounds
MSTVD Jun 18, 2024
c908e65
Fix more UI issues
Areldir Jun 19, 2024
721019e
Make City mint construction phases consistent with other monuments
Areldir Jun 19, 2024
f9416e5
Further building UI tweaks
Areldir Jun 20, 2024
665e295
Update assets
Areldir Jun 22, 2024
f86011b
Even more UI tweaks
Areldir Jun 22, 2024
2bcc309
Fix issue
Areldir Jun 22, 2024
c0d432d
More minor tweaks
Areldir Jun 22, 2024
8b4c054
Update assets
Areldir Jun 23, 2024
7cb0573
Add buttons for accessing the Advisors from the building's UI
Areldir Jun 23, 2024
9597622
Update assets
Areldir Jun 23, 2024
a58ce6e
Add change climate event action
Keriew Jun 23, 2024
49edd77
Fix wrong audio being played on custom victory messages
crudelios Jun 23, 2024
88e241e
Fix some issues with Mars GT interface
Keriew Jun 24, 2024
062c703
Update SDL
crudelios Jun 29, 2024
dabc144
Fix advisor buttons on building menus and add their tooltips
crudelios Jul 5, 2024
bd5fb56
Adjust Infantry bonuses
MSTVD Jul 11, 2024
00d8450
Adjust Infantry and QM defence bonuses
MSTVD Jul 11, 2024
34cb9dd
Add catapults' data
Keriew Jul 21, 2024
9cbb232
Update Korean translation
Keriew Jul 25, 2024
83c27d2
Update Korean translation
Keriew Jul 26, 2024
99845a5
Make catapults hostile
Keriew Jul 30, 2024
626ea78
Fix potential undefined behaviour
crudelios Aug 1, 2024
8a1a3f1
Update Korean translation
Keriew Aug 17, 2024
441b173
Fix "set user directory" not appearing on first launch
crudelios Aug 30, 2024
5010688
Match event invasion points with editor display
Keriew Sep 1, 2024
19aad70
Fix gift cost scaling
Keriew Sep 1, 2024
0d2f3a0
Fix building count not working for small areas
Keriew Sep 1, 2024
63e213b
Add a button to delete all non-custom messages
Keriew Sep 1, 2024
9f71f3f
Custom campaigns: fix starting funds for scenarios and personal salar…
crudelios Sep 14, 2024
63ff254
Add a campaign mission selection window
crudelios Sep 25, 2024
46352db
Fix occasional crash when showing a message popup
crudelios Sep 26, 2024
a7ad25b
Refactor campaign code and add some QoL changes:
crudelios Oct 3, 2024
4511039
Update lang.c (#1128)
eugenikus8 Oct 3, 2024
459800c
Update russian.c (#1131)
eugenikus8 Oct 3, 2024
25e779e
Update french.c (#1133)
Ouaz Oct 3, 2024
272c04c
Merge remote-tracking branch 'upstream/master' into augustus-master
crudelios Oct 3, 2024
f00fd2a
Update russian.c
eugenikus8 Oct 3, 2024
e75e3f4
Change minimum Mac version from 10.11 El Capitan to 10.13 High Sierra
crudelios Oct 5, 2024
b47ce83
Add missing newline at end of file
crudelios Oct 5, 2024
91566c3
Merge pull request #1143 from eugenikus8/patch-1
MSTVD Oct 19, 2024
c724341
Fix CCK scenarios toggling tutorial messages
crudelios Nov 20, 2024
d5a9f03
Fix Neptune GT water supply projection
Keriew Nov 25, 2024
35ef98b
Prioritize city selection on empire map
Keriew Nov 25, 2024
1144df2
Buff Aux. Archer health
MSTVD Nov 30, 2024
5c53936
add additional check for next enemy formation move to target building…
ZelionD Jan 2, 2025
0d502f7
Bug/Don't allow attack ghost targets (#1159)
ZelionD Jan 2, 2025
6616d6c
Minor asset update
Areldir Jan 2, 2025
aec6487
ignore figures when building roadblock (#1157)
ZelionD Jan 2, 2025
d899fe5
Minor asset xml tweaks
Areldir Jan 3, 2025
4f90a34
Fix crash when there's a request for troops at the same time another …
crudelios Jan 5, 2025
7ef2179
Open formation ranged attack defence bonus
crudelios Jan 6, 2025
b264d26
Update german.c (#1144)
Lizzaran360 Jan 6, 2025
dd0f3f3
Update asset xml for map editor
Areldir Jan 6, 2025
89eb4de
Add Rome flag empire bit
Areldir Jan 6, 2025
b7bf3a7
Add Boaty McBoatface
Areldir Jan 7, 2025
c6a08e1
Fix editor count operation causing crashes
Keriew Jan 11, 2025
60c5c19
Merge remote-tracking branch 'upstream/master' into augustus-master
crudelios Jan 12, 2025
821f15d
augustus-specific ios build changes (#1162)
axmo Jan 12, 2025
f76dfd6
Fix wrong text for great games
Keriew Jan 15, 2025
c357997
Fix building count script not working properly
Keriew Jan 15, 2025
896ee45
Assets for editor bridges
Areldir Jan 16, 2025
35c261c
remove Julius icon and launch image from iOS project (#1168)
axmo Jan 16, 2025
1fdc07e
remove double 10% reduction given from gt mars (#1167)
ZelionD Jan 16, 2025
24b8fa0
Add more editor assets
Areldir Jan 17, 2025
e7c6b14
Fix workcamp warehouse selection logic
Keriew Jan 21, 2025
488051c
Fix cross compile using dockercross
crudelios Jan 22, 2025
d285e1c
Fix armouries requiring workcamp permissions
Keriew Jan 24, 2025
d869ace
Update translation.h (#1172)
eugenikus8 Jan 26, 2025
73f02b0
Fix CodeQL issue
crudelios Jan 26, 2025
eede3d6
Add linux arm64 build and update SDL
crudelios Jan 26, 2025
06d7191
Update assets
Areldir Jan 27, 2025
a6e18c0
Update assets
Areldir Jan 29, 2025
ec596ac
Dynamic scenario objects (#1169)
crudelios Jan 30, 2025
b4304a3
Update RU locale [russian.c]
eugenikus8 Jan 30, 2025
1e35630
Merge pull request #1176 from eugenikus8/patch-1
MSTVD Jan 31, 2025
61da5f3
FIx some custom messages disappearing on old savegame load
crudelios Jan 31, 2025
fc4ed47
Fix crash when loading old savegames with custom messages and autosav…
crudelios Jan 31, 2025
cd59882
Add a few custom mp3s for buildings/walkers
Areldir Jan 31, 2025
49e5e82
Fix many bugs:
crudelios Feb 1, 2025
6618119
small fix RU locale [Update russian.c]
eugenikus8 Feb 1, 2025
ffe88a9
Merge pull request #1177 from eugenikus8/patch-1
MSTVD Feb 1, 2025
6ec5ad2
Reformat new sounds to 8bit wav
Areldir Feb 1, 2025
96199a9
Update assets
Areldir Feb 1, 2025
c00b71e
Fix minor asset issue
Areldir Feb 1, 2025
1a88f7d
Another minor asset fix
Areldir Feb 1, 2025
8c451d4
Allow roadblocks to be counted for editor events
crudelios Feb 1, 2025
32cb185
Add common/custom message filtering
Keriew Feb 1, 2025
218f66b
Fix wrong roadblock image on "empty storage" option
crudelios Feb 2, 2025
bbb7443
fix button [Update message_list.c] (#1178)
eugenikus8 Feb 2, 2025
b77e6bd
Fix UI and add city sounds (#1173)
eugenikus8 Feb 2, 2025
c4ada34
Add ingame support for loading new sound effects
crudelios Feb 2, 2025
f7df509
Update assets
Areldir Feb 2, 2025
38ab520
Add another custom sound
Areldir Feb 2, 2025
a037b5a
translation new lines [Update russian.c]
eugenikus8 Feb 2, 2025
09d9725
Fix wrong image on roadblock orders window
crudelios Feb 2, 2025
d332d9e
Merge pull request #1180 from eugenikus8/patch-1
MSTVD Feb 2, 2025
6e44377
Add more sound effects
Areldir Feb 3, 2025
8278f2b
Fix xml importing and exporting attributes when multiple values can b…
crudelios Feb 3, 2025
87a6075
Fix exporting/importing requests on scenario events
crudelios Feb 3, 2025
8dcf21f
Fix too many battle icons appearing on the empire map
crudelios Feb 3, 2025
42b4ea5
Fix pigs appearing on loading some savegames which only allow fish
crudelios Feb 3, 2025
604819e
Allow repeating requests and invasions yearly
crudelios Feb 3, 2025
082d1f4
Rename "small statue alt" to goddess statue and "small statue alt b" …
crudelios Feb 3, 2025
52b15f9
Add sounds (#1179)
eugenikus8 Feb 3, 2025
624f448
Minor font tweak
Areldir Feb 5, 2025
2e5e3c7
Minor asset tweak
Areldir Feb 5, 2025
eaf45e0
Hopefully fix fish and meat issues for good (doubtful)
crudelios Feb 5, 2025
c2c958b
Fix importing of malformed event xml files
crudelios Feb 5, 2025
9c2394c
"scenario events" now displays 10 events (previously 8). (#1184)
eugenikus8 Feb 6, 2025
27a8adb
Rework audio engine:
crudelios Feb 7, 2025
73b1b47
Update french.c (#1181)
Ouaz Feb 7, 2025
8e8588d
centering "message filter button" [message_list.c] (#1183)
eugenikus8 Feb 7, 2025
97235e0
Fix some issues with sounds
crudelios Feb 8, 2025
c5776ca
Fix another sound issue
crudelios Feb 8, 2025
0e3969b
Fix roamer previewer not showing all tiles if pausing right after loa…
crudelios Feb 8, 2025
17b83a6
add city sounds: (#1186)
eugenikus8 Feb 8, 2025
0e98ca8
Fix some more audio engine issues
crudelios Feb 9, 2025
859da27
Add ogg file support and bump versions
crudelios Feb 9, 2025
ff813b1
Fix Android build maybe
crudelios Feb 9, 2025
e046db8
Update sounds to .ogg and add more city sounds
Areldir Feb 9, 2025
7a28de0
Add native statue to editor
Areldir Feb 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
110 changes: 95 additions & 15 deletions .ci_scripts/build_upload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,82 @@ if ("$env:GITHUB_REF" -match "^refs/tags/v") {
$repo = "release"
} elseif ("$env:GITHUB_REF" -eq "refs/heads/master") {
$repo = "development"
} elseif ("$env:GITHUB_REF" -match "^refs/heads/feature/(.*)") {
$feature = $matches[1];
$version = "$version-$feature"
} elseif ("$env:GITHUB_REF" -eq "refs/heads/release") {
$repo = "experimental"
} elseif ("$env:GITHUB_REF" -match "^refs/pull/(.*)/merge") {
$pr_id = $matches[1];
$version = "pr-$pr_id-$version"
} else {
echo "Unknown branch type: ${env:GITHUB_REF} - skipping deploy"
exit
echo "Unknown branch type: ${env:GITHUB_REF}"
}

# Create deploy file
mkdir deploy
if ("${env:COMPILER}" -eq "msvc") {
$suffix = "windows-msvc"
CopyFile build/Release/julius.exe .
$suffix = "windows-msvc-x64"
CopyFile build/RelWithDebInfo/augustus.exe .
CopyFile build/RelWithDebInfo/augustus.pdb .
CopyFile ext\SDL2\SDL2-${env:SDL_VERSION}\lib\x64\SDL2.dll .
CopyFile ext\SDL2\SDL2_mixer-${env:SDL_MIXER_VERSION}\lib\x64\SDL2_mixer.dll .
} elseif ("${env:COMPILER}" -eq "msvc-arm64") {
$suffix = "windows-arm64"
CopyFile build/RelWithDebInfo/augustus.exe .
CopyFile build/RelWithDebInfo/augustus.pdb .
CopyFile ext\SDL2\SDL2\SDL2.dll .
CopyFile ext\SDL2\SDL2_mixer\SDL2_mixer.dll .
} elseif ("${env:COMPILER}" -eq "mingw-32") {
$suffix = "windows"
CopyFile build/julius.exe .
build/cv2pdb.exe build/augustus.exe
CopyFile build/augustus.exe .
CopyFile build/augustus.pdb .
CopyFile ext\SDL2\SDL2-${env:SDL_VERSION}\i686-w64-mingw32\bin\SDL2.dll .
CopyFile ext\SDL2\SDL2_mixer-${env:SDL_MIXER_VERSION}\i686-w64-mingw32\bin\SDL2_mixer.dll .
} elseif ("${env:COMPILER}" -eq "mingw-64") {
$suffix = "windows-64bit"
CopyFile build/julius.exe .
build/cv2pdb.exe build/augustus.exe
CopyFile build/augustus.exe .
CopyFile build/augustus.pdb .
CopyFile ext\SDL2\SDL2-${env:SDL_VERSION}\x86_64-w64-mingw32\bin\SDL2.dll .
CopyFile ext\SDL2\SDL2_mixer-${env:SDL_MIXER_VERSION}\x86_64-w64-mingw32\bin\SDL2_mixer.dll .
} else {
throw "Unknown compiler: ${env:COMPILER}"
}

$deploy_file = "julius-$version-$suffix.zip"
7z a "deploy\$deploy_file" julius.exe SDL2.dll SDL2_mixer.dll
$deploy_file = "augustus-$version-$suffix.zip"

$packed_assets = $false

if ($repo -eq "release") {
echo "Packing the assets"

cd .\res\asset_packer
mkdir build
cd build

cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=x86_64-w64-mingw32-gcc.exe -D CMAKE_MAKE_PROGRAM=mingw32-make.exe ..
cmake --build . -j 4 --config Release
if ($?) {
.\asset_packer.exe ..\..\
if ($?) {
Move-Item -Path ..\..\packed_assets -Destination ..\..\..\assets
$packed_assets = $true
}
}
if (!$packed_assets) {
echo "Unable to pack the assets. Using the original folder"
Move-Item -Path ..\..\assets -Destination ..\..\..\
$packed_assets = $true
}

cd ..\..\..

xcopy /ei res\maps .\maps
xcopy /ei res\manual .\manual
7z a "deploy\$deploy_file" augustus.exe augustus.pdb SDL2.dll SDL2_mixer.dll assets maps manual
} else {
7z a "deploy\$deploy_file" augustus.exe augustus.pdb SDL2.dll SDL2_mixer.dll
}

if (!$?) {
throw "Unable to create $deploy_file"
}
Expand All @@ -56,7 +98,7 @@ if ($env:SKIP_UPLOAD) {
}

if (!$repo) {
echo "No repo found - skipping deploy"
echo "No repo found - skipping upload"
exit
}

Expand All @@ -65,9 +107,47 @@ if (!$env:UPLOAD_TOKEN) {
exit
}

echo "Uploading $deploy_file to $repo/windows/$version"
curl -u "$env:UPLOAD_TOKEN" -T "deploy/$deploy_file" "https://julius.biancavanschaik.nl/upload/$repo/windows/$version/${deploy_file}"
echo "Uploading $deploy_file to $repo/$suffix/$version"
curl -u "$env:UPLOAD_TOKEN" -T "deploy/$deploy_file" "https://augustus.josecadete.net/upload/$repo/$suffix/$version/${deploy_file}"
if (!$?) {
throw "Unable to upload"
}
echo "Uploaded. URL: https://julius.biancavanschaik.nl/"
echo "Uploaded. URL: https://augustus.josecadete.net/$repo.html"

if ($suffix -ne "windows") {
exit
}

if (!$packed_assets) {
echo "Packing the assets"

cd .\res\asset_packer
mkdir build
cd build

cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=x86_64-w64-mingw32-gcc.exe -D CMAKE_MAKE_PROGRAM=mingw32-make.exe ..
cmake --build . -j 4 --config Release
if ($?) {
.\asset_packer.exe ..\..\
if ($?) {
Move-Item -Path ..\..\packed_assets -Destination ..\..\..\assets
$packed_assets = $true
}
}
if (!$packed_assets) {
echo "Unable to pack the assets. Using the original folder"
Move-Item -Path ..\..\assets -Destination ..\..\..\
}

cd ..\..\..
}

$assets_file = "assets-$version-$repo.zip"
7z a "$assets_file" assets

echo "Uploading $assets_file to $repo/windows/$version"
curl -u "$env:UPLOAD_TOKEN" -T "$assets_file" "https://augustus.josecadete.net/upload/$repo/assets/$version/${assets_file}"
if (!$?) {
throw "Unable to upload assets"
}
echo "Assets uploaded"
59 changes: 27 additions & 32 deletions .ci_scripts/build_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,68 +12,63 @@ then
elif [[ "$GITHUB_REF" == "refs/heads/master" ]]
then
REPO=development
elif [[ "$GITHUB_REF" =~ ^refs/heads/feature/ ]]
then
FEATURE=${GITHUB_REF##refs/heads/feature/}
VERSION=$VERSION-$FEATURE
elif [[ "$GITHUB_REF" =~ ^refs/pull/ ]]
then
PR_ID=${GITHUB_REF##refs/pull/}
PR_ID=${PR_ID%%/merge}
VERSION=pr-$PR_ID-$VERSION
else
echo "Unknown branch type $GITHUB_REF - skipping upload"
exit
fi

DEPLOY_FILE=
case "$DEPLOY" in
"linux")
PACKAGE=linux
DEPLOY_FILE=julius-$VERSION-linux-x86_64.zip
cp "${build_dir}/julius.zip" "deploy/$DEPLOY_FILE"
DEPLOY_FILE=augustus-$VERSION-linux-x86_64.zip
cp "${build_dir}/augustus.zip" "deploy/$DEPLOY_FILE"
;;
"flatpak")
PACKAGE=linux-flatpak
DEPLOY_FILE=julius-$VERSION-linux.flatpak
DEPLOY_FILE=augustus-$VERSION-linux.flatpak
flatpak build-export export repo
flatpak build-bundle export julius.flatpak com.github.bvschaik.julius --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
cp julius.flatpak "deploy/$DEPLOY_FILE"
;;
"appimage")
PACKAGE=linux-appimage
DEPLOY_FILE=julius-$VERSION-linux.AppImage
cp "${build_dir}/julius.AppImage" "deploy/$DEPLOY_FILE"
;;
"mac")
PACKAGE=mac
DEPLOY_FILE=julius-$VERSION-mac.dmg
cp "${build_dir}/julius.dmg" "deploy/$DEPLOY_FILE"
flatpak build-bundle export augustus.flatpak com.github.keriew.augustus --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
cp augustus.flatpak "deploy/$DEPLOY_FILE"
;;
"vita")
PACKAGE=vita
DEPLOY_FILE=julius-$VERSION-vita.vpk
cp "${build_dir}/julius.vpk" "deploy/$DEPLOY_FILE"
DEPLOY_FILE=augustus-$VERSION-vita.vpk
cp "${build_dir}/augustus.vpk" "deploy/$DEPLOY_FILE"
;;
"switch")
PACKAGE=switch
DEPLOY_FILE=julius-$VERSION-switch.zip
cp "release/julius_switch.zip" "deploy/$DEPLOY_FILE"
DEPLOY_FILE=augustus-$VERSION-switch.nro
cp "${build_dir}/augustus.nro" "deploy/$DEPLOY_FILE"
;;
"appimage")
PACKAGE=linux-appimage
DEPLOY_FILE=augustus-$VERSION-linux.AppImage
cp "${build_dir}/augustus.AppImage" "deploy/$DEPLOY_FILE"
;;
"mac")
PACKAGE=mac
DEPLOY_FILE=augustus-$VERSION-mac.dmg
cp "${build_dir}/augustus.dmg" "deploy/$DEPLOY_FILE"
;;
"android")
PACKAGE=android
if [ -f "${build_dir}/julius.apk" ]
if [ -f "${build_dir}/augustus.apk" ]
then
DEPLOY_FILE=julius-$VERSION-android.apk
cp "${build_dir}/julius.apk" "deploy/$DEPLOY_FILE"
DEPLOY_FILE=augustus-$VERSION-android.apk
cp "${build_dir}/augustus.apk" "deploy/$DEPLOY_FILE"
fi
;;
"emscripten")
PACKAGE=emscripten
if [ -f "${build_dir}/julius.zip" ]
if [ -f "${build_dir}/augustus.html" ]
then
DEPLOY_FILE=julius-$VERSION-emscripten.zip
cp "${build_dir}/julius.zip" "deploy/$DEPLOY_FILE"
DEPLOY_FILE=augustus-$VERSION-emscripten.html
cp "${build_dir}/augustus.html" "deploy/$DEPLOY_FILE"
fi
;;
*)
Expand All @@ -100,5 +95,5 @@ then
exit
fi

curl -u "$UPLOAD_TOKEN" -T deploy/$DEPLOY_FILE https://julius.biancavanschaik.nl/upload/$REPO/$PACKAGE/$VERSION/$DEPLOY_FILE
echo "Uploaded. URL: https://julius.biancavanschaik.nl/"
curl -u "$UPLOAD_TOKEN" -T deploy/$DEPLOY_FILE https://augustus.josecadete.net/upload/$REPO/$PACKAGE/$VERSION/$DEPLOY_FILE
echo "Uploaded. URL: https://augustus.josecadete.net/$REPO.html"
8 changes: 8 additions & 0 deletions .ci_scripts/install_dependencies.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cd ..
mkdir tmp
cd tmp
curl -o SDL2-devel-2.0.16-VC.zip https://www.libsdl.org/release/SDL2-devel-2.0.16-VC.zip
curl -o SDL2_mixer-devel-2.0.4-VC.zip https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.4-VC.zip
tar -xf SDL2-devel-2.0.16-VC.zip -C ../ext/SDL2
tar -xf SDL2_mixer-devel-2.0.4-VC.zip -C ../ext/SDL2
cd ../.ci_scripts
31 changes: 20 additions & 11 deletions .ci_scripts/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,11 @@ function install_sdl_macos {
function install_sdl_android {
local MODULE=$1
local VERSION=$2
local DIRNAME=deps/$MODULE-$VERSION
local FILENAME=$DIRNAME.tar.gz
if [ ! -f "$FILENAME" ]
then
get_sdl_lib_url $MODULE $VERSION "tar.gz"
curl -o "$FILENAME" "$SDL_LIB_URL"
fi
local FILENAME=ext/SDL2/$MODULE-$VERSION.tar.gz
get_sdl_lib_url $MODULE $VERSION "tar.gz"
curl -o "$FILENAME" "$SDL_LIB_URL"
tar -zxf $FILENAME -C ext/SDL2
rm $FILENAME
}

function install_sdl_ios {
Expand All @@ -101,12 +98,12 @@ function install_sdl_ios {
mkdir -p deps
if [ "$BUILD_TARGET" == "appimage" ] || [ "$BUILD_TARGET" == "codeql-cpp" ]
then
sudo apt-get update && sudo apt-get -y install libgl1-mesa-dev libsdl2-dev libsdl2-mixer-dev
sudo add-apt-repository universe && sudo add-apt-repository ppa:savoury1/multimedia && sudo apt-get update && sudo apt-get -y install libgl1-mesa-dev libsdl2-dev libsdl2-mixer-dev libfuse2
elif [ "$BUILD_TARGET" == "flatpak" ]
then
sudo apt-get update && sudo apt-get -y install flatpak-builder
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak-builder repo com.github.bvschaik.julius.json --install-deps-from=flathub --install-deps-only --delete-build-dirs
sudo flatpak-builder repo res/com.github.keriew.augustus.json --install-deps-from=flathub --install-deps-only --delete-build-dirs
sudo rm -R .flatpak-builder
elif [ ! -z "$SDL_VERSION" ] && [ ! -z "$SDL_MIXER_VERSION" ]
then
Expand All @@ -116,8 +113,20 @@ then
install_sdl_macos "SDL2_mixer" $SDL_MIXER_VERSION
elif [ "$BUILD_TARGET" == "android" ]
then
install_sdl_android "SDL2" $SDL_VERSION
install_sdl_android "SDL2_mixer" $SDL_MIXER_VERSION
if [ ! -f "android/augustus.keystore" ]
then
BUILDTYPE=debug
else
BUILDTYPE=release
fi
if [ ! -f "deps/SDL2-$BUILDTYPE.aar" ]
then
install_sdl_android "SDL2" $SDL_VERSION
install_sdl_android "SDL2_mixer" $SDL_MIXER_VERSION
else
mkdir android/augustus/libs
cp deps/SDL2-$BUILDTYPE.aar android/augustus/libs/SDL2-$BUILDTYPE.aar
fi
elif [ "$BUILD_TARGET" == "ios" ]
then
install_sdl_ios "SDL2" $SDL_VERSION
Expand Down
50 changes: 50 additions & 0 deletions .ci_scripts/install_sdl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ function CheckSuccess($message) {
}

mkdir -Force deps

if ("${env:COMPILER}" -eq "msvc") {
if ((Test-Path deps/SDL.zip) -and (Test-Path deps/SDL_mixer.zip)) {
echo "Using cached SDL libraries"
Expand All @@ -18,6 +19,55 @@ if ("${env:COMPILER}" -eq "msvc") {
CheckSuccess("Unpack SDL")
7z x deps\SDL_mixer.zip -oext\SDL2
CheckSuccess("Unpack SDL mixer")
} elseif ("${env:COMPILER}" -eq "msvc-arm64") {
$Env:SDL2_DIR = $PWD.Path + "\deps\SDL2"
mkdir -Force $Env:SDL2_DIR
$Env:SDL2_MIXER_DIR = $PWD.Path + "\deps\SDL2_mixer"
mkdir -Force $Env:SDL2_MIXER_DIR
if ((Test-Path "${Env:SDL2_DIR}\SDL2.dll") -and (Test-Path "${Env:SDL2_MIXER_DIR}\SDL2_mixer.dll")) {
echo "Using cached SDL libraries"
} else {
echo "Downloading SDL and SDL_mixer Sources"
curl "https://libsdl.org/release/SDL2-${env:SDL_VERSION}.zip" -o SDL.zip
CheckSuccess("Download SDL")
curl "https://libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${env:SDL_MIXER_VERSION}.zip" -o SDL_mixer.zip
CheckSuccess("Download SDL mixer")

7z x SDL.zip
7z x SDL_mixer.zip

CheckSuccess("Unpack SDL and SDL mixer")

cd "SDL2-${env:SDL_VERSION}"
mkdir build
cd build

cmake -G "Visual Studio 17 2022" -A ARM64 -DCMAKE_BUILD_TYPE=Release ..
cmake --build . -j 4 --config Release
mv include-config-release\SDL2\*.h include\SDL2
mv include\SDL2 $Env:SDL2_DIR
mv Release\SDL2* $Env:SDL2_DIR

CheckSuccess("Build SDL")

cd ..\..
cd "SDL2_mixer-${env:SDL_MIXER_VERSION}"
mkdir build
cd build

cmake -G "Visual Studio 17 2022" -A ARM64 -DCMAKE_BUILD_TYPE=Release -DSDL2MIXER_MP3=ON -DSDL2MIXER_MP3_MINIMP3=ON -DSDL2MIXER_VENDORED=OFF -DSDL2MIXER_SAMPLES=OFF -DSDL2MIXER_FLAC=OFF -DSDL2MIXER_CMD=OFF -DSDL2MIXER_MOD=OFF -DSDL2MIXER_MIDI=OFF -DSDL2MIXER_MIDI_TIMIDITY=OFF -DSDL2MIXER_OPUS=OFF -DSDL2MIXER_VORBIS=STB -DSDL2MIXER_WAVPACK=OFF ..
cmake --build . -j 4 --config Release

mv ..\include $Env:SDL2_MIXER_DIR
mv Release\SDL2_mixer* $Env:SDL2_MIXER_DIR

CheckSuccess("Build SDL mixer")

cd ..\..
}

cp -r $Env:SDL2_DIR ext\SDL2
cp -r $Env:SDL2_MIXER_DIR ext\SDL2
} else {
if ((Test-Path deps/SDL.tar.gz) -and (Test-Path deps/SDL_mixer.tar.gz)) {
echo "Using cached SDL libraries"
Expand Down
11 changes: 11 additions & 0 deletions .ci_scripts/pack_assets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e
mkdir res/asset_packer/build && cd res/asset_packer/build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
./asset_packer ../../
if [ $? -ne 0 ]
then
rm -rf ../../packed_assets
fi
Loading