mirror of
https://onedev.site.tesses.net/tesses-framework/tessesframework-gfx
synced 2026-02-08 16:35:45 +00:00
Initial commit
This commit is contained in:
38
Packaging/Linux/build-ubuntu-jammy.sh
Normal file
38
Packaging/Linux/build-ubuntu-jammy.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
apt update -y
|
||||
if [[ "$1" == "amd64" ]]; then
|
||||
source ./version.sh
|
||||
mkdir -p build/jammy
|
||||
cd build/jammy
|
||||
mkdir build-amd64
|
||||
|
||||
apt install -y git pkg-config tessesframework
|
||||
cmake -S ../../../../ -B build-amd64 -DCMAKE_INSTALL_PREFIX=/usr -DTESSESFRAMEWORKGFX_FETCHCONTENT=OFF
|
||||
cd build-amd64
|
||||
make -j`nproc`
|
||||
make install DESTDIR=../tessesframework-gfx_$DEB_VERSION\_amd64
|
||||
mkdir -p ../tessesframework-gfx_$DEB_VERSION\_amd64/DEBIAN
|
||||
bash ../../../make-control.sh ../tessesframework-gfx_$DEB_VERSION\_amd64/DEBIAN/control amd64
|
||||
cd ../
|
||||
dpkg-deb --build tessesframework-gfx_$DEB_VERSION\_amd64
|
||||
|
||||
else
|
||||
source ./version.sh
|
||||
mkdir -p build/jammy
|
||||
cd build/jammy
|
||||
mkdir build-$1
|
||||
apt install -y git pkg-config tessesframework:$1
|
||||
cmake -S ../../../../ -B build-$1 -DCMAKE_INSTALL_PREFIX=/usr -DTESSESFRAMEWORKGFX_FETCHCONTENT=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/toolchains/$1.cmake
|
||||
cd build-$1
|
||||
make -j`nproc`
|
||||
make install DESTDIR=../tessesframework-gfx_$DEB_VERSION\_$1
|
||||
mkdir -p ../tessesframework-gfx_$DEB_VERSION\_$1/DEBIAN
|
||||
bash ../../../make-control.sh ../tessesframework-gfx_$DEB_VERSION\_$1/DEBIAN/control $1
|
||||
cd ../
|
||||
dpkg-deb --build tessesframework-gfx_$DEB_VERSION\_$1
|
||||
fi
|
||||
curl --user tesses50:$GITEA_AUTH -X DELETE \
|
||||
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/jammy/main/tessesframework-gfx/$DEB_VERSION/$1
|
||||
curl --user tesses50:$GITEA_AUTH \
|
||||
--upload-file tessesframework-gfx_$DEB_VERSION\_$1.deb \
|
||||
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/jammy/main/upload
|
||||
34
Packaging/Linux/build-ubuntu-plucky.sh
Normal file
34
Packaging/Linux/build-ubuntu-plucky.sh
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
DEBIAN_FRONTEND=noninteractive apt update -y
|
||||
source ./version.sh
|
||||
mkdir -p build/plucky
|
||||
cd build/plucky
|
||||
if [[ "$1" == "amd64" ]]; then
|
||||
mkdir build-amd64
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y git pkg-config tessesframework
|
||||
cmake -S ../../../../ -B build-amd64 -DCMAKE_INSTALL_PREFIX=/usr -DTESSESFRAMEWORKGFX_FETCHCONTENT=OFF
|
||||
cd build-amd64
|
||||
make -j`nproc`
|
||||
make install DESTDIR=../tessesframework--gfx_$DEB_VERSION\_amd64
|
||||
mkdir -p ../tessesframework--gfx_$DEB_VERSION\_amd64/DEBIAN
|
||||
bash ../../../make-control.sh ../tessesframework--gfx_$DEB_VERSION\_amd64/DEBIAN/control amd64
|
||||
cd ../
|
||||
|
||||
dpkg-deb --build tessesframework--gfx_$DEB_VERSION\_amd64
|
||||
else
|
||||
mkdir build-$1
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y git pkg-config tessesframework:$1
|
||||
cmake -S ../../../../ -B build-$1 -DCMAKE_INSTALL_PREFIX=/usr -DTESSESFRAMEWORKGFX_FETCHCONTENT=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/toolchains/$1.cmake
|
||||
cd build-$1
|
||||
make -j`nproc`
|
||||
make install DESTDIR=../tessesframework--gfx_$DEB_VERSION\_$1
|
||||
mkdir -p ../tessesframework--gfx_$DEB_VERSION\_$1/DEBIAN
|
||||
bash ../../../make-control.sh ../tessesframework--gfx_$DEB_VERSION\_$1/DEBIAN/control $1
|
||||
cd ../
|
||||
dpkg-deb --build tessesframework--gfx_$DEB_VERSION\_$1
|
||||
fi
|
||||
curl --user tesses50:$GITEA_AUTH -X DELETE \
|
||||
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/plucky/main/tessesframework--gfx/$DEB_VERSION/$1
|
||||
curl --user tesses50:$GITEA_AUTH \
|
||||
--upload-file tessesframework--gfx_$DEB_VERSION\_$1.deb \
|
||||
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/plucky/main/upload
|
||||
8
Packaging/Linux/make-control.sh
Normal file
8
Packaging/Linux/make-control.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
echo "Package: tessesframework-gfx" > "$1"
|
||||
echo "Version: $DEB_VERSION" >> "$1"
|
||||
echo "Architecture: $2" >> "$1"
|
||||
echo "Essential: no" >> "$1"
|
||||
echo "Priority: optional" >> "$1"
|
||||
echo "Depends: tessesframework" >> "$1"
|
||||
echo "Maintainer: Mike Nolan" >> "$1"
|
||||
echo "Description: Graphics Library For TessesFramework" >> "$1"
|
||||
1
Packaging/Linux/version.sh
Normal file
1
Packaging/Linux/version.sh
Normal file
@@ -0,0 +1 @@
|
||||
export DEB_VERSION=1.0.0
|
||||
Reference in New Issue
Block a user