Skip to content

Commit 460aa04

Browse files
committed
IDK what else to do
1 parent 5e2a535 commit 460aa04

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

.github/workflows/ubuntu-build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
uses: oprypin/install-crystal@v1
1212
- name: Install Crystal libs
1313
run: shards install
14+
- name: apt update
15+
run: apt update
1416
- name: run install script
1517
run: sh ./rsrc/native/ubuntu/install.sh
1618
- name: build examples

rsrc/native/mac/mac-raylib-build.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
set -e
44

55
cd $(dirname "$0")
6-
test -d raylib || git clone --branch 5.0 https://github.com/raysan5/raylib --recursive --depth 1
7-
cd raylib
6+
test -d raylib || git clone --depth 1 --branch 5.0 --recursive https://github.com/raysan5/raylib
87
test -d build || mkdir build
98
cd build
109
cmake ..

rsrc/native/ubuntu/install-lib.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sudo cp /usr/local/lib/libminiaudiohelpers.so /usr/lib/libminiaudiohelpers.so
66
sudo ln -s /usr/lib/libminiaudiohelpers.so /lib/miniaudiohelpers.so
77

88
# Compile raylib
9-
git clone --branch 5.0 https://github.com/raysan5/raylib
9+
git clone --depth 1 --branch 5.0 https://github.com/raysan5/raylib
1010
mkdir raylib/build
1111
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
1212
cmake raylib -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -B raylib/build
@@ -16,7 +16,7 @@ sudo cp /usr/local/lib/libraylib.so.5.0.0 /usr/lib/libraylib.so.500
1616
sudo ln -s /usr/lib/libraylib.so.500 /lib/raylib.so
1717

1818
# Compile raygui
19-
git clone --branch 4.0 https://github.com/raysan5/raygui
19+
git clone --depth 1 --branch 4.0 https://github.com/raysan5/raygui
2020
mv raygui/src/raygui.h raygui/src/raygui.c
2121
gcc -c -fPIC raygui/src/raygui.c -o raygui/raygui.o -DRAYGUI_IMPLEMENTATION
2222
sudo gcc raygui/raygui.o -shared -o /usr/local/lib/libraygui.so -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11

rsrc/native/ubuntu/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sudo cp /usr/local/lib/libminiaudiohelpers.so /usr/lib/libminiaudiohelpers.so
55
sudo ln -s /usr/lib/libminiaudiohelpers.so /lib/miniaudiohelpers.so
66

77
# Compile raylib
8-
git clone --branch 5.0 https://github.com/raysan5/raylib
8+
git clone --depth 1 --branch 5.0 https://github.com/raysan5/raylib
99
mkdir raylib/build
1010
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
1111
cmake raylib -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -B raylib/build
@@ -15,7 +15,7 @@ sudo cp /usr/local/lib/libraylib.so.5.0.0 /usr/lib/libraylib.so.500
1515
sudo ln -s /usr/lib/libraylib.so.500 /lib/raylib.so
1616

1717
# Compile raygui
18-
git clone --branch 4.0 https://github.com/raysan5/raygui
18+
git clone --depth 1 --branch 4.0 https://github.com/raysan5/raygui
1919
mv raygui/src/raygui.h raygui/src/raygui.c
2020
gcc -c -fPIC raygui/src/raygui.c -o raygui/raygui.o -DRAYGUI_IMPLEMENTATION
2121
sudo gcc raygui/raygui.o -shared -o /usr/local/lib/libraygui.so -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11

rsrc/native/windows/install-ga.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ copy miniaudiohelpers.lib libs\miniaudiohelpers.lib
55
del miniaudiohelpers.obj
66
del miniaudiohelpers.lib
77

8-
git clone --branch 5.0 https://github.com/raysan5/raylib
8+
git clone --depth 1 --branch 5.0 https://github.com/raysan5/raylib
99
cd raylib
1010
mkdir build
1111
cd build
@@ -15,7 +15,7 @@ copy raylib\Debug\raylib.lib ..\..\libs\raylib.lib
1515
copy raylib\Debug\raylib.dll ..\..\libs\raylib.dll
1616
cd ..\..
1717

18-
git clone --branch 4.0 https://github.com/raysan5/raygui
18+
git clone --depth 1 --branch 4.0 https://github.com/raysan5/raygui
1919
cd raygui
2020
copy src\raygui.h src\raygui.c
2121
cl /O2 /I../raylib/src/ /D_USRDLL /D_WINDLL /DRAYGUI_IMPLEMENTATION /DBUILD_LIBTYPE_SHARED src/raygui.c /LD /Feraygui.dll /link /LIBPATH ../raylib/build/raylib/Debug/raylib.lib /subsystem:windows /machine:x64

rsrc/native/windows/install-lib.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ copy miniaudiohelpers.lib libs\miniaudiohelpers.lib
55
del miniaudiohelpers.obj
66
del miniaudiohelpers.lib
77

8-
git clone --branch 5.0 https://github.com/raysan5/raylib
8+
git clone --depth 1 --branch 5.0 https://github.com/raysan5/raylib
99
cd raylib
1010
mkdir build
1111
cd build
@@ -15,7 +15,7 @@ copy raylib\Debug\raylib.lib ..\..\libs\raylib.lib
1515
copy raylib\Debug\raylib.dll ..\..\libs\raylib.dll
1616
cd ..\..
1717

18-
git clone --branch 4.0 https://github.com/raysan5/raygui
18+
git clone --depth 1 --branch 4.0 https://github.com/raysan5/raygui
1919
cd raygui
2020
copy src\raygui.h src\raygui.c
2121
cl /O2 /I../raylib/src/ /D_USRDLL /D_WINDLL /DRAYGUI_IMPLEMENTATION /DBUILD_LIBTYPE_SHARED src/raygui.c /LD /Feraygui.dll /link /LIBPATH ../raylib/build/raylib/Debug/raylib.lib /subsystem:windows /machine:x64

rsrc/native/windows/install.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ copy miniaudiohelpers.lib C:\raylib\miniaudiohelpers.lib
44
del miniaudiohelpers.obj
55
del miniaudiohelpers.lib
66

7-
git clone --branch 5.0 https://github.com/raysan5/raylib
7+
git clone --depth 1 --branch 5.0 https://github.com/raysan5/raylib
88
cd raylib
99
mkdir build
1010
cd build
@@ -15,7 +15,7 @@ copy raylib\Debug\raylib.lib C:\raylib\raylib.lib
1515
copy raylib\Debug\raylib.dll C:\raylib\raylib.dll
1616
cd ..\..
1717

18-
git clone --branch 4.0 https://github.com/raysan5/raygui
18+
git clone --depth 1 --branch 4.0 https://github.com/raysan5/raygui
1919
cd raygui
2020
copy src\raygui.h src\raygui.c
2121
cl /O2 /I../raylib/src/ /D_USRDLL /D_WINDLL /DRAYGUI_IMPLEMENTATION /DBUILD_LIBTYPE_SHARED src/raygui.c /LD /Feraygui.dll /link /LIBPATH ../raylib/build/raylib/Debug/raylib.lib /subsystem:windows /machine:x64

0 commit comments

Comments
 (0)