Why does raylib weigh 500 MB?????? Also some misc changes in compile.sh and autobuild.yaml.

This commit is contained in:
milkwx3
2026-06-13 23:32:48 +03:00
parent dc5f4f7d91
commit 606dab1904
32 changed files with 212 additions and 15 deletions
+14 -3
View File
@@ -12,7 +12,7 @@ jobs:
- name: Install build tools
run: |
sudo apt update
sudo apt install -y build-essential cmake zip unzip make
sudo apt install -y build-essential cmake zip unzip make libxrandr
- name: Build makeheaders
run: |
@@ -25,7 +25,10 @@ jobs:
cd ${{ gitea.workspace }}/src/libraries
git clone https://github.com/lsalzman/enet.git
git clone https://github.com/walterschell/Lua.git
git clone https://github.com/raysan5/raylib.git
git clone --filter=blob:none --sparse https://github.com/raysan5/raylib.git
cd raylib
git sparse-checkout set src include src/raylib.h CMakeLists.txt
cd ..
git clone https://github.com/jbeder/yaml-cpp.git
cd ../..
@@ -34,4 +37,12 @@ jobs:
chmod +x ${{ gitea.workspace }}/compile.sh
sh ${{ gitea.workspace }}/compile.sh
zip -r release-linux.zip OUTPUT-Linux || true
zip -r release-w64.zip OUTPUT-w64 || true
zip -r release-w64.zip OUTPUT-w64 || true
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: build-artifacts
path: |
release-linux.zip
release-w64.zip
+3 -1
View File
@@ -5,4 +5,6 @@ libraries/*
.vscode
android
__UTILS__
snapshots
snapshots
OUTPUT-Linux
OUTPUT-w64
+17 -11
View File
@@ -2,20 +2,26 @@
./makeheaders/makeheaders -h src/helpers/vars.hpp src/helpers/chunks.cpp src/helpers/debug.cpp src/helpers/entities.cpp src/helpers/input.cpp src/helpers/menu.cpp src/helpers/mesher.cpp src/helpers/networking.cpp src/helpers/utils.cpp src/helpers/inlines.hpp src/helpers/inventory.cpp src/helpers/locale.cpp src/helpers/recipes.cpp src/helpers/particles.cpp src/helpers/player.cpp src/helpers/multisound.cpp src/helpers/svlib.cpp -v > src/helpers/common.hpp
#rm -r build
rm -r build
echo Building Linux...
cmake -B build -DUNIX=ON -DUNIX=true
cd build
make -j12
cd ..
cp build/src/RCRAFT* OUTPUT
#cp build/src/dedicated_server/RDS* OUTPUT
mkdir OUTPUT-Linux
cp build/src/RCRAFT OUTPUT-Linux
cp -r data/resources OUTPUT-Linux
mkdir OUTPUT-Linux/user
mkdir OUTPUT-Linux/user/worlds
#rm -r build
#echo Building Windows...
#cmake -DCMAKE_TOOLCHAIN_FILE=toolchains/mingw-w64.cmake -DWIN32=ON -DWIN32=true -B build
#cd build
#make -j12
#cd ..
#cp build/src/RCRAFT.exe OUTPUT
#cp build/src/dedicated_server/RDS.exe OUTPUT
rm -r build
echo Building Windows...
cmake -DCMAKE_TOOLCHAIN_FILE=toolchains/mingw-w64.cmake -DWIN32=ON -DWIN32=true -B build
cd build
make -j12
cd ..
mkdir OUTPUT-w64
cp build/src/RCRAFT.exe OUTPUT-w64
cp -r data/resources OUTPUT-w64
mkdir OUTPUT-w64/user
mkdir OUTPUT-w64/user/worlds
+64
View File
@@ -0,0 +1,64 @@
211d25
413d42
5c5b63
7c808b
a5b0b6
d6dede
ffffff
dcded1
aab1a1
7b8375
585f57
3c3c3c
635d5a
8d837d
b4aea4
dedcd1
eadedf
bcacb1
8f8189
685d66
643747
b2434d
e55858
fa8971
ffb999
ffe0b7
ffbdc1
ef93b5
c971a2
944e89
4c3d57
5d558f
777dc4
96b1e7
bedef6
aae3db
5ac5ce
4694a8
346376
2a3b4a
29684a
379648
79b547
b8cf61
f3db6f
f4ba7a
e79055
ce6442
944940
91555d
b76f6b
cd9383
e1ba9e
facafb
d49ce5
9f76b8
725689
edb762
fcfbc9
de9463
b66a4d
333f29
4e5c2c
708939
Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

+75
View File
@@ -0,0 +1,75 @@
# en_US locale
# By: milkwx3
locale_code: en_US
locale_name: English
# Controls
forward: Walk forward
left: Walk left
back: Walk backward
right: Walk right
jump: Jump / fly up
shift: Descend
speed_up: Fly faster
fly: Toggle flying
chat: Open chat
swap_mouse: Swap LMB/RMB
# Menu
select_level: Singleplayer
multiplayer: Multiplayer
join: Join
exit: Exit
options: Options
# Multiplayer errors
error_notfound: Host not found!
error_internal: Internal enet error!
error_unknown: Connection failed for unknown reason!
# Chat
send: Send
# World creation status
step_0: Building world...
step_1: Generating features...
step_2: Rebuilding presence masks...
step_3: Preparing...
chunk_status: Chunk %3d / %3d
# Items
# Blocks
item.air: "Air"
item.stone: "Stone"
item.grass: "Grass Block"
item.dirt: "Dirt"
item.sand: "Sand"
item.water: "Water"
item.planks: "Wooden Planks"
item.gray_bricks: "Gray Bricks"
item.red_bricks: "Red Bricks"
item.blue_bricks: "Blue Bricks"
item.green_bricks: "Green Bricks"
item.glass: "Glass"
item.log: "Log"
item.spruce_planks: "Spruce Planks"
item.red_block: "Red Block"
item.green_block: "Green Block"
item.blue_block: "Blue Block"
item.yellow_block: "Yellow Block"
item.cyan_block: "Cyan Block"
item.magenta_block: "Magenta Block"
item.white_block: "White Block"
item.black_block: "Black Block"
item.leaves: "Leaves"
item.copper_ore: "Copper Ore"
item.silver_ore: "Silver Ore"
item.gold_ore: "Gold Ore"
item.coal_ore: "Coal Ore"
item.unobtainium: "Unobtainium"
# Generic items
item.block: "Block"
item.apple: "Apple"
item.stick: "Stick"
item.stone_pickaxe: "Stone Pickaxe"
item.copper_pickaxe: "Copper Pickaxe"
item.silver_pickaxe: "Silver Pickaxe"
item.gold_pickaxe: "Gold Pickaxe"
item.copper_ingot: "Copper Ingot"
item.silver_ingot: "Silver Ingot"
item.gold_ingot: "Gold Ingot"
Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["item:silver_ingot"]
outputs: ["block:blue_bricks"]
+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["block:copper_ore*2"]
outputs: ["item:copper_ingot"]
@@ -0,0 +1,3 @@
station: hands
inputs: ["item:copper_ingot*3","item:stick*2"]
outputs: ["item:copper_pickaxe"]
+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["block:gold_ore*2"]
outputs: ["item:gold_ingot"]
+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["item:gold_ingot*3","item:stick*2"]
outputs: ["item:gold_pickaxe"]
+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["block:stone*2"]
outputs: ["block:gray_bricks"]
+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["block:log"]
outputs: ["block:planks*2"]
+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["item:copper_ingot"]
outputs: ["block:red_bricks"]
+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["block:silver_ore*2"]
outputs: ["item:silver_ingot"]
@@ -0,0 +1,3 @@
station: hands
inputs: ["item:silver_ingot*3","item:stick*2"]
outputs: ["item:silver_pickaxe"]
@@ -0,0 +1,3 @@
station: hands
inputs: ["block:spruce_log"]
outputs: ["block:spruce_planks*2"]
+3
View File
@@ -0,0 +1,3 @@
station: hands
inputs: ["tag:planks"]
outputs: ["item:stick*4"]
@@ -0,0 +1,3 @@
station: hands
inputs: ["block:stone*3","item:stick*2"]
outputs: ["item:stone_pickaxe"]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB