build on ubuntu
This commit is contained in:
parent
1b74f27aa7
commit
e19632a702
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
container:
|
||||
image: debian:sid
|
||||
image: ubuntu:23.04
|
||||
volumes:
|
||||
- /proc:/proc
|
||||
options: --privileged -it
|
||||
|
2
.github/workflows/release_i386.yml
vendored
2
.github/workflows/release_i386.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
container:
|
||||
image: debian:sid
|
||||
image: ubuntu:23.04
|
||||
volumes:
|
||||
- /proc:/proc
|
||||
options: --privileged -it
|
||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
||||
mangohud (1:0.6.8-99pika7.lunar) lunar; urgency=medium
|
||||
mangohud (1:0.6.8-99pika8.lunar) lunar; urgency=medium
|
||||
|
||||
* Initial Push to PPA
|
||||
|
||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -21,7 +21,7 @@ Build-Depends: debhelper-compat (= 13),
|
||||
libwayland-dev,
|
||||
libxnvctrl-dev,
|
||||
libxrandr-dev,
|
||||
python3-mako [!i386],
|
||||
python3-mako,
|
||||
python3-setuptools,
|
||||
Rules-Requires-Root: no
|
||||
Standards-Version: 4.6.1
|
||||
|
2
hooks/01pikarepo
Normal file
2
hooks/01pikarepo
Normal file
@ -0,0 +1,2 @@
|
||||
#echo "deb [trusted=yes] https://ppa.pika-os.com/ lunar main" >> /etc/apt/sources.list
|
||||
apt-get update
|
26
main32.sh
26
main32.sh
@ -13,16 +13,24 @@ cp -rvf ./debian ./mangohud/
|
||||
cd ./mangohud
|
||||
|
||||
# Get build deps
|
||||
apt-get install build-essential -y
|
||||
apt-get install crossbuild-essential-i386 lib32gcc-11-dev -y
|
||||
apt-get build-dep ./ -y -a i386
|
||||
apt-get install python3-mako -y
|
||||
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
|
||||
apt-get build-dep -y ./
|
||||
debuild -S -uc -us
|
||||
cd ../
|
||||
|
||||
# Build package
|
||||
dpkg-buildpackage -a i386
|
||||
apt-get install -y pbuilder debootstrap devscripts debhelper sbuild debhelper ubuntu-dev-tools piuparts
|
||||
|
||||
apt install -y debian-archive-keyring
|
||||
cp -rvf ./pbuilderrc /etc/pbuilderrc
|
||||
mkdir -p /var/cache/pbuilder/hook.d/
|
||||
cp -rvf ./hooks/* /var/cache/pbuilder/hook.d/
|
||||
rm -rf /var/cache/apt/
|
||||
mkdir -p /pbuilder-results
|
||||
DIST=lunar ARCH=i386 pbuilder create --distribution lunar --architecture i386 --debootstrapopts --include=ca-certificates
|
||||
echo 'starting build'
|
||||
DIST=lunar ARCH=i386 pbuilder build ./*.dsc --distribution lunar --architecture i386 --debootstrapopts --include=ca-certificates
|
||||
|
||||
# Move the debs to output
|
||||
cd ../
|
||||
mkdir -p ./output
|
||||
mv ./*.deb ./output/
|
||||
|
||||
mv /var/cache/pbuilder/result/*.deb ./output/ || sudo mv ../*.deb ./output/
|
||||
|
8
pbuilderrc
Normal file
8
pbuilderrc
Normal file
@ -0,0 +1,8 @@
|
||||
USENETWORK=yes
|
||||
OTHERMIRROR="deb [trusted=yes] http://ppa.pika-os.com/ lunar main"
|
||||
HOOKDIR="/var/cache/pbuilder/hook.d/"
|
||||
APTCACHEHARDLINK=no
|
||||
export DEBIAN_FRONTEND="noninteractive"
|
||||
#OTHERMIRROR="deb [trusted=yes] https://ppa.pika-os.com/ lunar main"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user