update to lunar and git
This commit is contained in:
commit
acc47c9453
40
.github/workflows/release.yml
vendored
Normal file
40
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: PikaOS Package Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: self-hosted
|
||||||
|
container:
|
||||||
|
image: ubuntu:23.04
|
||||||
|
volumes:
|
||||||
|
- /proc:/proc
|
||||||
|
options: --privileged -it
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install needed packages
|
||||||
|
run: apt update && apt install software-properties-common sudo git bc gpg gpg-agent bison build-essential ccache cpio fakeroot flex git kmod libelf-dev libncurses5-dev libssl-dev lz4 qtbase5-dev rsync schedtool wget zstd tar reprepro dpkg-sig devscripts dh-make -y
|
||||||
|
|
||||||
|
- name: Import GPG key
|
||||||
|
id: import_gpg
|
||||||
|
uses: crazy-max/ghaction-import-gpg@v5
|
||||||
|
with:
|
||||||
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
|
passphrase: ${{ secrets.PASSPHRASE }}
|
||||||
|
|
||||||
|
- name: Install SSH key
|
||||||
|
uses: shimataro/ssh-key-action@v2
|
||||||
|
with:
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
name: id_rsa
|
||||||
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||||
|
if_key_exists: replace
|
||||||
|
|
||||||
|
- name: Build Package
|
||||||
|
run: ./main.sh
|
||||||
|
|
||||||
|
- name: Release Package
|
||||||
|
run: ./release.sh
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
steamdeck-jupiter-driver (20221213.1-99pika1-lunar) lunar; urgency=low
|
||||||
|
|
||||||
|
* Initial Creation
|
||||||
|
|
||||||
|
-- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200
|
15
debian/control
vendored
Normal file
15
debian/control
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Source: steamdeck-jupiter-driver
|
||||||
|
Section: games
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Ward Nakchbandi <hotrod.master@hotmail.com>
|
||||||
|
Build-Depends: debhelper-compat (= 13)
|
||||||
|
Standards-Version: 4.6.1
|
||||||
|
Homepage: https://github.com/KyleGospo/jupiter-hw-support.git
|
||||||
|
|
||||||
|
Package: steamdeck-jupiter-driver
|
||||||
|
Section: games
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${misc:Depends}, python3, python3-hid, python3-hidapi, python3-libevdev, python3-crcmod, python3-click, python3-progressbar2, libhidapi-hidraw0, libhidapi-libusb0, jq, alsa-utils, parted, python3-parted, libparted2, e2fsprogs
|
||||||
|
Provides: jupiter-fan-control, jupiter-hw-support
|
||||||
|
Description: Steam Deck Hardware Support Package
|
||||||
|
Conflicts: steamdeck-jupiter-driver-btrfs
|
15
debian/copyright
vendored
Normal file
15
debian/copyright
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Copyright (C) 2020-2022 Jaoquín I. Aramendía <samsagax@gmail.com>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
|
copies of this license document, and changing it is allowed as long
|
||||||
|
as the name is changed.
|
||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
|
|
7
debian/postinst
vendored
Executable file
7
debian/postinst
vendored
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
systemctl enable --now jupiter-biosupdate.service || echo "jupiter-biosupdate service could not be enabled"
|
||||||
|
systemctl enable --now jupiter-controller-update.service || echo "jupiter-controller-update service could not be enabled"
|
||||||
|
systemctl enable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be enabled"
|
7
debian/prerm
vendored
Executable file
7
debian/prerm
vendored
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
systemctl disable --now jupiter-biosupdate.service || echo "jupiter-biosupdate service could not be disabled"
|
||||||
|
systemctl disable --now jupiter-controller-update.service || echo "jupiter-controller-update service could not be disabled"
|
||||||
|
systemctl disable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be disabled"
|
3
debian/rules
vendored
Executable file
3
debian/rules
vendored
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
%:
|
||||||
|
dh $@
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (native)
|
2
debian/steamdeck-jupiter-driver.install
vendored
Normal file
2
debian/steamdeck-jupiter-driver.install
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
usr
|
||||||
|
etc
|
29
main.sh
Executable file
29
main.sh
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
# Add dependent repositories
|
||||||
|
wget -q -O - https://ppa.pika-os.com/key.gpg | sudo apt-key add -
|
||||||
|
add-apt-repository https://ppa.pika-os.com
|
||||||
|
add-apt-repository ppa:pikaos/pika
|
||||||
|
add-apt-repository ppa:kubuntu-ppa/backports
|
||||||
|
|
||||||
|
# Clone Upstream
|
||||||
|
git clone https://github.com/KyleGospo/jupiter-fan-control
|
||||||
|
git clone https://github.com/KyleGospo/jupiter-hw-support
|
||||||
|
mkdir -p ./steamdeck-jupiter-driver
|
||||||
|
cp -rvf ./jupiter-hw-support/usr ./jupiter-fan-control
|
||||||
|
cp -rvf ./jupiter-hw-support/etc ./steamdeck-jupiter-driver
|
||||||
|
cp -rvf ./jupiter-hw-support/usr ./steamdeck-jupiter-driver
|
||||||
|
cp -rvf ./debian ./steamdeck-jupiter-driver
|
||||||
|
cd ./steamdeck-jupiter-driver
|
||||||
|
|
||||||
|
# Get build deps
|
||||||
|
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
|
||||||
|
apt-get build-dep ./ -y
|
||||||
|
|
||||||
|
# Build package
|
||||||
|
dpkg-buildpackage
|
||||||
|
|
||||||
|
# Move the debs to output
|
||||||
|
cd ../
|
||||||
|
mkdir -p ./output
|
||||||
|
mv ./*.deb ./output/
|
11
release.sh
Executable file
11
release.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
# Sign the packages
|
||||||
|
dpkg-sig --sign builder ./output/*.deb
|
||||||
|
|
||||||
|
# Pull down existing ppa repo db files etc
|
||||||
|
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
||||||
|
|
||||||
|
# Add the new package to the repo
|
||||||
|
reprepro -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
|
||||||
|
|
||||||
|
# Push the updated ppa repo to the server
|
||||||
|
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|
Loading…
Reference in New Issue
Block a user