diff --git a/desktop-base/.github/workflows/build-canaryi386.yml b/desktop-base/.github/workflows/build-canaryi386.yml new file mode 100644 index 0000000..8996dc0 --- /dev/null +++ b/desktop-base/.github/workflows/build-canaryi386.yml @@ -0,0 +1,37 @@ +name: PikaOS Package Build Only (Canary) (i386) + +on: + push: + branches: + - main + paths: + - '.github/build-canary-i386' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/pikaos-linux/pikaos-builder:canaryi386 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ vars.SSH_KEY }} + name: id_rsa + known_hosts: ${{ vars.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Update APT Cache + run: apt-get update -y + + - name: Set Build Config + run: cp -vf ./pika-build-config/i386.sh ./pika-build-config.sh + + - name: Build Package + run: ./main.sh diff --git a/desktop-base/.github/workflows/build-canaryv3.yml b/desktop-base/.github/workflows/build-canaryv3.yml new file mode 100644 index 0000000..25f3de9 --- /dev/null +++ b/desktop-base/.github/workflows/build-canaryv3.yml @@ -0,0 +1,37 @@ +name: PikaOS Package Build Only (Canary) (amd64-v3) + +on: + push: + branches: + - main + paths: + - '.github/build-canary-v3' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/pikaos-linux/pikaos-builder:canaryv3 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ vars.SSH_KEY }} + name: id_rsa + known_hosts: ${{ vars.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Update APT Cache + run: apt-get update -y + + - name: Set Build Config + run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh + + - name: Build Package + run: ./main.sh diff --git a/desktop-base/.github/workflows/build-nesti386.yml b/desktop-base/.github/workflows/build-nesti386.yml new file mode 100644 index 0000000..5cf59d5 --- /dev/null +++ b/desktop-base/.github/workflows/build-nesti386.yml @@ -0,0 +1,37 @@ +name: PikaOS Package Build Only (i386) + +on: + push: + branches: + - main + paths: + - '.github/build-nest-i386' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/pikaos-linux/pikaos-builder:nesti386 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ vars.SSH_KEY }} + name: id_rsa + known_hosts: ${{ vars.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Update APT Cache + run: apt-get update -y + + - name: Set Build Config + run: cp -vf ./pika-build-config/i386.sh ./pika-build-config.sh + + - name: Build Package + run: ./main.sh diff --git a/desktop-base/.github/workflows/build-nestv3.yml b/desktop-base/.github/workflows/build-nestv3.yml new file mode 100644 index 0000000..80a4e86 --- /dev/null +++ b/desktop-base/.github/workflows/build-nestv3.yml @@ -0,0 +1,37 @@ +name: PikaOS Package Build Only (amd64-v3) + +on: + push: + branches: + - main + paths: + - '.github/build-nest-v3' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/pikaos-linux/pikaos-builder:nestv3 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ vars.SSH_KEY }} + name: id_rsa + known_hosts: ${{ vars.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Update APT Cache + run: apt-get update -y + + - name: Set Build Config + run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh + + - name: Build Package + run: ./main.sh diff --git a/desktop-base/.github/workflows/release-canaryi386.yml b/desktop-base/.github/workflows/release-canaryi386.yml new file mode 100644 index 0000000..5b7f7c3 --- /dev/null +++ b/desktop-base/.github/workflows/release-canaryi386.yml @@ -0,0 +1,40 @@ +name: PikaOS Package Build & Release (Canary) (i386) + +on: + push: + branches: + - main + paths: + - '.github/release-canary-i386' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/pikaos-linux/pikaos-builder:canaryi386 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ vars.SSH_KEY }} + name: id_rsa + known_hosts: ${{ vars.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Update APT Cache + run: apt-get update -y + + - name: Set Build Config + run: cp -vf ./pika-build-config/i386.sh ./pika-build-config.sh + + - name: Build Package + run: ./main.sh + + - name: Release Package + run: ./release.sh diff --git a/desktop-base/.github/workflows/release-canaryv3.yml b/desktop-base/.github/workflows/release-canaryv3.yml new file mode 100644 index 0000000..895def8 --- /dev/null +++ b/desktop-base/.github/workflows/release-canaryv3.yml @@ -0,0 +1,40 @@ +name: PikaOS Package Build & Release (Canary) (amd64-v3) + +on: + push: + branches: + - main + paths: + - '.github/release-canary-v3' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/pikaos-linux/pikaos-builder:canaryv3 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ vars.SSH_KEY }} + name: id_rsa + known_hosts: ${{ vars.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Update APT Cache + run: apt-get update -y + + - name: Set Build Config + run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh + + - name: Build Package + run: ./main.sh + + - name: Release Package + run: ./release.sh diff --git a/desktop-base/.github/workflows/release-nesti386.yml b/desktop-base/.github/workflows/release-nesti386.yml new file mode 100644 index 0000000..839db27 --- /dev/null +++ b/desktop-base/.github/workflows/release-nesti386.yml @@ -0,0 +1,40 @@ +name: PikaOS Package Build & Release (i386) + +on: + push: + branches: + - main + paths: + - '.github/release-nest-i386' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/pikaos-linux/pikaos-builder:nesti386 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ vars.SSH_KEY }} + name: id_rsa + known_hosts: ${{ vars.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Update APT Cache + run: apt-get update -y + + - name: Set Build Config + run: cp -vf ./pika-build-config/i386.sh ./pika-build-config.sh + + - name: Build Package + run: ./main.sh + + - name: Release Package + run: ./release.sh diff --git a/desktop-base/.github/workflows/release-nestv3.yml b/desktop-base/.github/workflows/release-nestv3.yml new file mode 100644 index 0000000..a1aa799 --- /dev/null +++ b/desktop-base/.github/workflows/release-nestv3.yml @@ -0,0 +1,40 @@ +name: PikaOS Package Build & Release (amd64-v3) + +on: + push: + branches: + - main + paths: + - '.github/release-nest-v3' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/pikaos-linux/pikaos-builder:nestv3 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ vars.SSH_KEY }} + name: id_rsa + known_hosts: ${{ vars.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Update APT Cache + run: apt-get update -y + + - name: Set Build Config + run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh + + - name: Build Package + run: ./main.sh + + - name: Release Package + run: ./release.sh diff --git a/desktop-base/emblems-pika/emblem-pika-symbolic.icon b/desktop-base/emblems-pika/emblem-pika-symbolic.icon new file mode 100644 index 0000000..dde7381 --- /dev/null +++ b/desktop-base/emblems-pika/emblem-pika-symbolic.icon @@ -0,0 +1,2 @@ +[Icon Data] +DisplayName=PikaOS Symbolic diff --git a/desktop-base/emblems-pika/emblem-pika-white.icon b/desktop-base/emblems-pika/emblem-pika-white.icon new file mode 100644 index 0000000..3fbe588 --- /dev/null +++ b/desktop-base/emblems-pika/emblem-pika-white.icon @@ -0,0 +1,2 @@ +[Icon Data] +DisplayName= White diff --git a/desktop-base/emblems-pika/emblem-pika.icon b/desktop-base/emblems-pika/emblem-pika.icon new file mode 100644 index 0000000..09b241d --- /dev/null +++ b/desktop-base/emblems-pika/emblem-pika.icon @@ -0,0 +1,2 @@ +[Icon Data] +DisplayName=PikaOS diff --git a/desktop-base/main.sh b/desktop-base/main.sh new file mode 100755 index 0000000..8b305f2 --- /dev/null +++ b/desktop-base/main.sh @@ -0,0 +1,37 @@ +#! /bin/bash + +set -e + +source ./pika-build-config.sh + +echo "$PIKA_BUILD_ARCH" > pika-build-arch + +VERSION="13.3" + +# Get logos +wget https://git.pika-os.com/website/pika-branding/raw/branch/main/logos/pika-logo.svg -O ./desktop-base/pika-logos/logo.svg +wget https://git.pika-os.com/website/pika-branding/raw/branch/main/logos/pika-logo-text.svg -O ./desktop-base/pika-logos/logo-text.svg +wget https://git.pika-os.com/website/pika-branding/raw/branch/main/logos/pika-logo-text-dark.svg -O ./desktop-base/pika-logos/logo-text-dark.svg +wget https://git.pika-os.com/website/pika-branding/raw/branch/main/logos/pika-simple.svg -O ./desktop-base/emblems-pika/emblem-pika-symbolic.svg + +cp -vf ./desktop-base/pika-logos/logo.svg ./desktop-base/emblems-pika/emblem-pika.svg +cp -vf ./desktop-base/pika-logos/logo.svg ./desktop-base/logo.png +cp -vf ./desktop-base/pika-logos/logo.svg ./desktop-base/pixmaps/debian-security.png +cp -vf ./desktop-base/logos/logo-text.svg ./desktop-base/logos/logo-text-version.svg +cp -vf ./desktop-base/logos/logo-text-dark.svg ./desktop-base/logos/logo-text-dark-version.svg +cp -vf ./desktop-base/emblems-pika/emblem-pika-symbolic.svg ./desktop-base/emblems-pika/emblem-pika-white.svg + +# Clone Upstream +cd ./desktop-base + +# Get build deps +LOGNAME=root dh_make --createorig -y -l -p desktop-base_"$VERSION" || echo "dh-make: Ignoring Last Error" +apt-get build-dep ./ -y + +# Build package +dpkg-buildpackage --no-sign + +# Move the debs to output +cd ../ +mkdir -p ./output +mv ./*.deb ./output/ diff --git a/desktop-base/pika-build-config/amd64-v3.sh b/desktop-base/pika-build-config/amd64-v3.sh new file mode 100755 index 0000000..4547e43 --- /dev/null +++ b/desktop-base/pika-build-config/amd64-v3.sh @@ -0,0 +1,9 @@ +PIKA_BUILD_ARCH="amd64-v3" +DEBIAN_FRONTEND="noninteractive" +DEB_BUILD_MAINT_OPTIONS="optimize=+lto -march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +DEB_CFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +DEB_CPPFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +DEB_CXXFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +DEB_LDFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +DEB_BUILD_OPTIONS="nocheck notest terse" +DPKG_GENSYMBOLS_CHECK_LEVEL=0 diff --git a/desktop-base/pika-build-config/i386.sh b/desktop-base/pika-build-config/i386.sh new file mode 100755 index 0000000..9a76b13 --- /dev/null +++ b/desktop-base/pika-build-config/i386.sh @@ -0,0 +1,4 @@ +PIKA_BUILD_ARCH="i386" +DEBIAN_FRONTEND="noninteractive" +DEB_BUILD_OPTIONS="nocheck notest terse" +DPKG_GENSYMBOLS_CHECK_LEVEL=0 diff --git a/desktop-base/pixmaps/debian-security-old.png b/desktop-base/pixmaps/debian-security-old.png new file mode 100644 index 0000000..25873c8 Binary files /dev/null and b/desktop-base/pixmaps/debian-security-old.png differ diff --git a/desktop-base/release.sh b/desktop-base/release.sh new file mode 100755 index 0000000..2b121d4 --- /dev/null +++ b/desktop-base/release.sh @@ -0,0 +1,3 @@ +# send debs to server +rsync -azP --include './' --include '*.deb' --exclude '*' ./output/ ferreo@direct.pika-os.com:/srv/www/cockatiel-incoming/ +