From 3551edce2cca831be0c90b3fe38a368aea70a710 Mon Sep 17 00:00:00 2001 From: Egor00f Date: Thu, 7 Nov 2024 12:38:42 +0000 Subject: [PATCH] create windows installer script --- .github/workflows/test.yml | 21 +++++++++++++++++++-- install.bat | 34 ++++++++++++++++++++++++++++++++++ install => install.sh | 0 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 install.bat rename install => install.sh (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bed08f3..99b103d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" - build: + linux-install: # The type of runner that the job will run on runs-on: ubuntu-latest @@ -27,7 +27,7 @@ jobs: # Runs a single command using the runners shell - name: Run script - run: ${{ github.workspace }}/./install + run: ${{ github.workspace }}/./install.sh - name: add to path run: echo "/home/autobuild/tools/win32/bin" >> $GITHUB_PATH @@ -36,5 +36,22 @@ jobs: run: | kos32-gcc -v kos32-g++ -v + windows-install: + runs-on: windows-latest + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + + # Runs a single command using the runners shell + - name: Run script + run: ${{ github.workspace }}/install.bat + + - name: add to path + run: echo "C:\MinGW\msys\1.0\home\autobuild\tools\win32\bin" >> $GITHUB_PATH + + - name: Test + run: | + kos32-gcc -v + kos32-g++ -v diff --git a/install.bat b/install.bat new file mode 100644 index 0000000..3c5f702 --- /dev/null +++ b/install.bat @@ -0,0 +1,34 @@ + +@echo off + +7z -v + +set TOOLCHAIN_DIR=C:\MinGW\msys\1.0\home\autobuild\tools + + +cd %TOOLCHAIN_DIR% + +wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/msys-kos32-5.4.0.7z -q -O %TOOLCHAIN_DIR%\kos32-toolchain.7z + +7z x -y kos32-toolchain.7z + + +cd %TOOLCHAIN_DIR%\win32\mingw32 + +wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/sdk-28-10-16.7z -q -O %TOOLCHAIN_DIR%\sdk-28-10-16.7z + +7z x -y sdk-28-10-16.7z + +cd lib + +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 +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 +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 +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 +wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libopenjpeg.a -q -O libopenjpeg.a + +set PATH=%PATH%;%TOOLCHAIN_DIR%%\win32\bin diff --git a/install b/install.sh similarity index 100% rename from install rename to install.sh