Skip to content

scu-covariant/csbuild

 
 

Repository files navigation

Covariant Script Official Build System(Education Edition)

Cautious!DO NOT INSTALL Different Edition Together!
Build Status

Supported Platform

  1. Microsoft Windows (Win32)
  2. Debian Linux and its derivations (like Ubuntu Linux) (Dpkg)

Win32 Platform

Dependencies

  1. 32bit and 64bit version of MinGW-w64(i686-posix-sjlj and x86_64-posix-seh)
  2. 32bit and 64bit version of GLFW3(Windows pre-compiled binaries)
  3. Git on Windows
  4. 7-Zip
  5. Windows SDK, provided but no guarantee

Prepare

It is very complex due to Microsoft Windows' lack of package managers, please be patient. Why we're not using the MSVC compiler? It was not supported before. Now it's supported but too slow (slower than MinGW-w64) to be used.

  1. Ensure your computer's performance is good enough -- at least 2 cores CPU and 4 gigabytes RAM.
  2. Recheck your internet access, which is required to fetch the source code from github.
  3. Keep the local clone of this repository is up to date.
  4. Enter the sign_tools folder, execute gen.bat to generate the certificates manually. Do not set the password, leave it blank.
  5. Set the PATH environment variable correctly, the executables of 7-Zip and Git-SCM should be included.
  6. Unzip the two versions of MinGW-w64 you have downloaded into two folders, rename the 32bit version to mingw32 and the 64bit version to mingw64, put them into the win_tools folder.
  7. Unzip the two versions of GLFW3 you have downloaded into two folders and install them into two versions of MinGW-w64 separately:
    • MinGW-w64 data folder position:
      • For 32bit version, it is mingw32/i686-w64-mingw32 folder
      • For 64bit version, it is mingw64/x86_64-w64-mingw32 folder
    • Apply these two steps to both 32bit and 64bit versions separately:
      1. Copy the contents of include folder of GLFW3 into include folder of MinGW-w64 data folder
      2. Copy the contents of lib-mingw-w64 folder of GLFW3 into lib folder of MinGW-w64 data folder

Compile

Just follow the files' name under the win_tools folder. The first step will be very time-consuming. You will get the 32bit and 64bit executables under win_tools/builds.

Dpkg Platform

Dependencies

Install pkg-config, build-essential, git and libglfw3-dev via apt-get.

Prepare

  1. Ensure your computer's performance is good enough -- at least 2 cores CPU and 4 gigabytes RAM.
  2. Recheck your internet access, which is required to fetch the source code from github.
  3. Keep the local clone of this repository is up to date.

Compile

Enter the deb_tools folder and run

bash ./auto-build.sh

The first step will be very time-consuming. You will get the .deb file under deb_tools/deb-src which contains the specialized build version which depends on your machine.

Packages

No packages published

Languages

  • Shell 51.1%
  • Batchfile 48.9%