mirror of
https://github.com/Egor00f/kolibrios-gcc-toolchain.git
synced 2024-11-21 17:03:48 +01:00
commit
2346cbda4a
27
.github/workflows/test.yml
vendored
27
.github/workflows/test.yml
vendored
@ -47,4 +47,29 @@ jobs:
|
|||||||
kos32-gcc -v
|
kos32-gcc -v
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
|
build-Installer:
|
||||||
|
runs-on: windowd-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cmake -B ${{ github.workspace }}/build
|
||||||
|
cmake --build ${{ github.workspace }}/build --target Installer
|
||||||
|
|
||||||
|
build-package:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cmake -B ${{ github.workspace }}/build
|
||||||
|
cmake --build ${{ github.workspace }}/build --target Package
|
||||||
|
|
||||||
|
- name: Install package
|
||||||
|
run: sudo dpkg -i ${{ github.workspace }}/build/package.deb
|
||||||
|
|
||||||
|
- name: Add toolchain to path
|
||||||
|
run: echo "/home/autobuild/tools/win32/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -1 +1,4 @@
|
|||||||
Output/
|
Output/
|
||||||
|
package/DEBIAN/postinst
|
||||||
|
package.deb
|
||||||
|
build/
|
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@ -2,6 +2,7 @@
|
|||||||
"recommendations": [
|
"recommendations": [
|
||||||
"chouzz.vscode-innosetup",
|
"chouzz.vscode-innosetup",
|
||||||
"streetsidesoftware.code-spell-checker",
|
"streetsidesoftware.code-spell-checker",
|
||||||
"streetsidesoftware.code-spell-checker-russian"
|
"streetsidesoftware.code-spell-checker-russian",
|
||||||
|
"ms-vscode.cmake-tools"
|
||||||
]
|
]
|
||||||
}
|
}
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -4,6 +4,7 @@
|
|||||||
"тулчейн",
|
"тулчейн",
|
||||||
"тулчейна",
|
"тулчейна",
|
||||||
"msys",
|
"msys",
|
||||||
"kolibrios"
|
"kolibrios",
|
||||||
|
"Egor"
|
||||||
]
|
]
|
||||||
}
|
}
|
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
|
||||||
|
|
||||||
|
project(
|
||||||
|
KolibriOS-gcc-Toolchain-installer
|
||||||
|
DESCRIPTION "Installer of gcc toolchain for KolibriOS"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
Package
|
||||||
|
COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/install.sh ${CMAKE_CURRENT_SOURCE_DIR}/package/DEBIAN/postinst
|
||||||
|
COMMAND dpkg-deb --build ${CMAKE_CURRENT_SOURCE_DIR}/package ${CMAKE_CURRENT_BINARY_DIR}/package.deb
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
Installer
|
||||||
|
COMMAND iscc /O"${CMAKE_CURRENT_BINARY_DIR}" ${CMAKE_CURRENT_SOURCE_DIR}/installator.iss
|
||||||
|
)
|
50
install.sh
50
install.sh
@ -28,6 +28,10 @@ check_utils(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pwd
|
||||||
|
|
||||||
|
TOOLCHAIN_DIR="/home/autobuild/tools"
|
||||||
|
|
||||||
|
|
||||||
print_msg "Checking utilities..."
|
print_msg "Checking utilities..."
|
||||||
|
|
||||||
@ -40,9 +44,7 @@ check_utils 7z
|
|||||||
|
|
||||||
print_msg "Create the /home/autobuild folder..."
|
print_msg "Create the /home/autobuild folder..."
|
||||||
|
|
||||||
sudo rm -rf ~/autobuild /home/autobuild
|
sudo mkdir -p $TOOLCHAIN_DIR
|
||||||
mkdir -p ~/autobuild/tools
|
|
||||||
sudo ln -sf ~/autobuild /home/autobuild
|
|
||||||
|
|
||||||
print_ok "Successfully!"
|
print_ok "Successfully!"
|
||||||
|
|
||||||
@ -50,7 +52,7 @@ print_ok "Successfully!"
|
|||||||
|
|
||||||
print_msg "Download the kos32-gcc toolchain..."
|
print_msg "Download the kos32-gcc toolchain..."
|
||||||
|
|
||||||
wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/x86_64-linux-kos32-5.4.0.7z -q -O ~/autobuild/tools/kos32-toolchain.7z
|
sudo wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/x86_64-linux-kos32-5.4.0.7z -q -O $TOOLCHAIN_DIR/kos32-toolchain.7z
|
||||||
|
|
||||||
print_ok "Successfully!"
|
print_ok "Successfully!"
|
||||||
|
|
||||||
@ -58,9 +60,9 @@ print_ok "Successfully!"
|
|||||||
|
|
||||||
print_msg "Extracting files ..."
|
print_msg "Extracting files ..."
|
||||||
|
|
||||||
cd ~/autobuild/tools/
|
cd $TOOLCHAIN_DIR
|
||||||
7z x -y kos32-toolchain.7z
|
sudo 7z x -y kos32-toolchain.7z
|
||||||
rm -rf kos32-toolchain.7z
|
sudo rm -rf kos32-toolchain.7z
|
||||||
|
|
||||||
print_ok "Successfully!"
|
print_ok "Successfully!"
|
||||||
|
|
||||||
@ -68,10 +70,10 @@ print_ok "Successfully!"
|
|||||||
|
|
||||||
print_msg "Downloading libraries..."
|
print_msg "Downloading libraries..."
|
||||||
|
|
||||||
cd ~/autobuild/tools/win32/mingw32
|
cd $TOOLCHAIN_DIR/win32/mingw32
|
||||||
wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/sdk-28-10-16.7z -q -O sdk-28-10-16.7z
|
sudo wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/sdk-28-10-16.7z -q -O sdk-28-10-16.7z
|
||||||
7z x -y sdk-28-10-16.7z
|
sudo 7z x -y sdk-28-10-16.7z
|
||||||
rm -rf sdk-28-10-16.7z
|
sudo rm -rf sdk-28-10-16.7z
|
||||||
|
|
||||||
print_ok "Successfully!"
|
print_ok "Successfully!"
|
||||||
|
|
||||||
@ -80,15 +82,15 @@ print_ok "Successfully!"
|
|||||||
print_msg "Updating libraries"
|
print_msg "Updating libraries"
|
||||||
|
|
||||||
cd lib
|
cd lib
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libdll.a -q -O libdll.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libdll.a -q -O libdll.a
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libfreetype.a -q -O libfreetype.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libfreetype.a -q -O libfreetype.a
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libc.dll.a -q -O libc.dll.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libc.dll.a -q -O libc.dll.a
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libSDLn.a -q -O libSDLn.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libSDLn.a -q -O libSDLn.a
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libcurses.a -q -O libcurses.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libcurses.a -q -O libcurses.a
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libz.dll.a -q -O libz.dll.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libz.dll.a -q -O libz.dll.a
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libogg.a -q -O libogg.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libogg.a -q -O libogg.a
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libvorbis.a -q -O libvorbis.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libvorbis.a -q -O libvorbis.a
|
||||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libopenjpeg.a -q -O libopenjpeg.a
|
sudo wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libopenjpeg.a -q -O libopenjpeg.a
|
||||||
|
|
||||||
print_ok "Successfully!"
|
print_ok "Successfully!"
|
||||||
|
|
||||||
@ -121,10 +123,12 @@ sudo ln -sf /usr/lib/libmpfr.so.6 /usr/lib/libmpfr.so.4
|
|||||||
print_ok "Successfully!"
|
print_ok "Successfully!"
|
||||||
|
|
||||||
|
|
||||||
if ! grep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then
|
if ! grep -q 'export PATH=$PATH:$TOOLCHAIN_DIR/win32/bin' ~/.bashrc; then
|
||||||
export PATH=$PATH:/home/autobuild/tools/win32/bin
|
export PATH=$PATH:/home/autobuild/tools/win32/bin
|
||||||
print_msg "Adding '/home/autobuild/tools/win32/bin' to '~/.bashrc'"
|
print_msg "Adding '$TOOLCHAIN_DIR/win32/bin' to '~/.bashrc'"
|
||||||
echo 'export PATH=$PATH:/home/autobuild/tools/win32/bin' >> ~/.bashrc
|
echo 'export PATH=$PATH:$TOOLCHAIN_DIR/win32/bin' >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd "$OLDPWD"
|
||||||
|
|
||||||
print_ok "Installation was successful!"
|
print_ok "Installation was successful!"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
#define MyAppName "KolibriOS gcc toolchain"
|
#define MyAppName "KolibriOS gcc toolchain"
|
||||||
#define MyAppVersion "0.1"
|
#define MyAppVersion "0.1.1"
|
||||||
#define MyAppPublisher "Egor00f"
|
#define MyAppPublisher "Egor00f"
|
||||||
#define MyAppURL "https://github.com/Egor00f/kolibrios-gcc-toolchain"
|
#define MyAppURL "https://github.com/Egor00f/kolibrios-gcc-toolchain"
|
||||||
|
|
||||||
|
14
package/DEBIAN/control
Normal file
14
package/DEBIAN/control
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Package: kos32-gcc
|
||||||
|
Version: 0.1.1
|
||||||
|
Architecture: all
|
||||||
|
Section: devel
|
||||||
|
Depends: libc6-i386:amd64, libmpc3:amd64
|
||||||
|
Pre-Depends: p7zip, wget
|
||||||
|
Recommends: fasm
|
||||||
|
Priority: optional
|
||||||
|
Homepage: https://github.com/Egor00f/kolibrios-gcc-toolchain
|
||||||
|
Origin: http://ftp.kolibrios.org/users/Serge/new/Toolchain
|
||||||
|
Maintainer: Egor00f <velikiydolbayeb@gmail.com>
|
||||||
|
Installed-Size: 131708
|
||||||
|
Description: KolibriOS gcc toolchain installer
|
||||||
|
This package installing KolibriOS gcc toolchain.
|
3
package/DEBIAN/postrm
Executable file
3
package/DEBIAN/postrm
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -R /home/autobuild/tools/win32
|
Loading…
Reference in New Issue
Block a user