update to git
This commit is contained in:
parent
446ebcb4e0
commit
396560afe7
47
.github/workflows/release.yml
vendored
Normal file
47
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
name: PikaOS Package Release
|
||||
|
||||
on:
|
||||
workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
container:
|
||||
image: ghcr.io/pikaos-linux/pika-package-container:latest
|
||||
volumes:
|
||||
- /proc:/proc
|
||||
options: --privileged -it
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- 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: chmod +x ./main.sh && ./main.sh
|
||||
|
||||
- name: Release Package
|
||||
run: chmod +x ./release.sh && ./release.sh
|
||||
|
||||
- name: Purge cache
|
||||
uses: strrife/cloudflare-chunked-purge-action@master
|
||||
env:
|
||||
# Zone is required by both authentication methods
|
||||
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
|
||||
|
||||
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
|
||||
PURGE_URLS: ${{ vars.PURGE_URLS }}
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "pika-installer-gtk4"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
6
Makefile
6
Makefile
@ -2,11 +2,13 @@ all:
|
||||
true
|
||||
|
||||
install:
|
||||
mkdir -p $(DESTDIR)/usr/bin/
|
||||
#mkdir -p $(DESTDIR)/usr/bin/
|
||||
cargo fetch
|
||||
cargo build --release
|
||||
cp -vf target/release/pika-installer-gtk4 $(DESTDIR)/usr/bin/
|
||||
#cp -vf target/release/pika-installer-gtk4 $(DESTDIR)/usr/bin/
|
||||
chmod 755 $(DESTDIR)/usr/bin/pika-installer-gtk4
|
||||
mkdir -p $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/bin/
|
||||
cp -vf target/release/pika-installer-gtk4 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/bin/
|
||||
mkdir -p $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/
|
||||
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
|
||||
cp -rvf data/scripts/*.sh $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/
|
||||
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
pika-installer-gtk4 (1.0.0) pikauwu; urgency=low
|
||||
|
||||
* First release
|
||||
|
||||
-- Ward Nakchbandi <hotrod.master@hotmail.com> Thu, 20 Sep 2022 22:01:00 +0000
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
9
|
19
debian/control
vendored
Normal file
19
debian/control
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
Source: pika-installer-gtk4
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: International Arms dealers <chipichipi@chapachapa.com>
|
||||
Build-Depends: build-essential,
|
||||
debhelper,
|
||||
cargo,
|
||||
libadwaita-1-dev,
|
||||
libgtk-4-dev,
|
||||
desktop-file-utils,
|
||||
make,
|
||||
libvte-2.91-gtk4-dev
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: pika-installer-gtk4
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends},
|
||||
pikainstall
|
||||
Description: A frontend in GTK 4 and Libadwaita for pikainstall.
|
16
debian/extras/pika-installer
vendored
Normal file
16
debian/extras/pika-installer
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
#! /bin/bash
|
||||
|
||||
if env | grep XDG_SESSION_DESKTOP | grep -i -E 'gnome|ubuntu|pika'
|
||||
then
|
||||
gnome-session-inhibit /usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
|
||||
elif env | grep XDG_SESSION_DESKTOP | grep -i -E 'kde|plasma'
|
||||
then
|
||||
# Disable Auto Suspend
|
||||
cp -vf /etc/pika-installer-gtk4/powermanagementprofilesrc ~/.config/ || exit 1
|
||||
# Disable screen lock
|
||||
kwriteconfig5 --file kscreenlockerrc --group Daemon --key Autolock false
|
||||
qdbus org.freedesktop.ScreenSaver /ScreenSaver configure
|
||||
/usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
|
||||
else
|
||||
/usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
|
||||
fi
|
14
debian/extras/pika-installer-autostart.desktop
vendored
Normal file
14
debian/extras/pika-installer-autostart.desktop
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
[Desktop Entry]
|
||||
Icon=calamares
|
||||
Name=Install PikaOS Linux
|
||||
Exec=pika-installer
|
||||
Icon=calamares
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
X-GNOME-Autostart-enabled=true
|
||||
X-KDE-AutostartScript=true
|
||||
Categories=GNOME;GTK;Utility;
|
||||
Keywords=Gnome;GTK
|
||||
NoDisplay=true
|
13
debian/extras/pika-installer.desktop
vendored
Normal file
13
debian/extras/pika-installer.desktop
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Icon=calamares
|
||||
Name=Install PikaOS Linux
|
||||
Exec=pika-installer
|
||||
Icon=calamares
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
X-GNOME-Autostart-enabled=true
|
||||
X-KDE-AutostartScript=true
|
||||
Categories=GNOME;GTK;Utility;
|
||||
Keywords=Gnome;GTK
|
57
debian/extras/powermanagementprofilesrc
vendored
Normal file
57
debian/extras/powermanagementprofilesrc
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
[AC]
|
||||
icon=battery-charging
|
||||
|
||||
[AC][DPMSControl]
|
||||
idleTime=600
|
||||
lockBeforeTurnOff=0
|
||||
|
||||
[AC][DimDisplay]
|
||||
idleTime=300000
|
||||
|
||||
[AC][HandleButtonEvents]
|
||||
lidAction=1
|
||||
powerButtonAction=16
|
||||
powerDownAction=16
|
||||
|
||||
[Battery]
|
||||
icon=battery-060
|
||||
|
||||
[Battery][DPMSControl]
|
||||
idleTime=300
|
||||
lockBeforeTurnOff=0
|
||||
|
||||
[Battery][DimDisplay]
|
||||
idleTime=120000
|
||||
|
||||
[Battery][HandleButtonEvents]
|
||||
lidAction=1
|
||||
powerButtonAction=16
|
||||
powerDownAction=16
|
||||
|
||||
[Battery][SuspendSession]
|
||||
idleTime=600000
|
||||
suspendThenHibernate=false
|
||||
suspendType=1
|
||||
|
||||
[LowBattery]
|
||||
icon=battery-low
|
||||
|
||||
[LowBattery][BrightnessControl]
|
||||
value=30
|
||||
|
||||
[LowBattery][DPMSControl]
|
||||
idleTime=120
|
||||
lockBeforeTurnOff=0
|
||||
|
||||
[LowBattery][DimDisplay]
|
||||
idleTime=60000
|
||||
|
||||
[LowBattery][HandleButtonEvents]
|
||||
lidAction=1
|
||||
powerButtonAction=16
|
||||
powerDownAction=16
|
||||
|
||||
[LowBattery][SuspendSession]
|
||||
idleTime=300000
|
||||
suspendThenHibernate=false
|
||||
suspendType=1
|
11
debian/postinst
vendored
Normal file
11
debian/postinst
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
set -e
|
||||
|
||||
update-mime-database /usr/share/mime
|
||||
update-desktop-database
|
||||
glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||
|
||||
|
||||
|
29
debian/rules
vendored
Executable file
29
debian/rules
vendored
Executable file
@ -0,0 +1,29 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
|
||||
override_dh_missing:
|
||||
dh_missing
|
||||
mkdir -pv debian/pika-installer-gtk4/usr/share/applications/
|
||||
mkdir -pv debian/pika-installer-gtk4/etc/xdg/autostart/
|
||||
mkdir -pv debian/pika-installer-gtk4/usr/bin/
|
||||
mkdir -pv debian/pika-installer-gtk4/etc/pika-installer-gtk4/
|
||||
cp -vf debian/extras/pika-installer.desktop debian/pika-installer-gtk4/usr/share/applications/
|
||||
cp -vf debian/extras/pika-installer-autostart.desktop debian/pika-installer-gtk4/etc/xdg/autostart/
|
||||
cp -vf debian/extras/pika-installer debian/pika-installer-gtk4/usr/bin/
|
||||
chmod +x debian/pika-installer-gtk4/usr/bin/pika-installer
|
||||
cp -vf debian/extras/powermanagementprofilesrc debian/pika-installer-gtk4/etc/pika-installer-gtk4/
|
||||
|
||||
|
||||
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
||||
3.0 (native)
|
15
main.sh
Normal file
15
main.sh
Normal file
@ -0,0 +1,15 @@
|
||||
# Clone Upstream
|
||||
mkdir -p ./pika-installer-gtk4
|
||||
rsync -av --progress ./* ./pika-installer-gtk4 --exclude ./pika-installer-gtk4
|
||||
cd ./pika-installer-gtk4
|
||||
|
||||
# Get build deps
|
||||
apt-get build-dep ./ -y
|
||||
|
||||
# Build package
|
||||
dpkg-buildpackage --no-sign
|
||||
|
||||
# Move the debs to output
|
||||
cd ../
|
||||
mkdir -p ./output
|
||||
mv ./*.deb ./output/
|
8
release.sh
Normal file
8
release.sh
Normal file
@ -0,0 +1,8 @@
|
||||
# send debs to server
|
||||
rsync -azP --include './' --include '*.deb' --exclude '*' ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
||||
|
||||
# add debs to repo
|
||||
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pikauwu-main /srv/www/incoming/'
|
||||
|
||||
# publish the repo
|
||||
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite pikauwu filesystem:pikarepo:'
|
@ -76,7 +76,7 @@ pub fn build_ui(app: &adw::Application) {
|
||||
// Add the box called "_main_box" to it
|
||||
.content(&_main_box)
|
||||
// Application icon
|
||||
.icon_name("nautilus")
|
||||
.icon_name("calamares")
|
||||
// Get current size from glib
|
||||
.default_width(glib_settings.int("window-width"))
|
||||
.default_height(glib_settings.int("window-height"))
|
||||
@ -153,4 +153,4 @@ pub fn build_ui(app: &adw::Application) {
|
||||
//bottom_next_button.connect_clicked(move |_| content_stack_clone.set_visible_child(&content_stack_clone.visible_child().expect("null").next_sibling().unwrap()));
|
||||
//bottom_back_button.connect_clicked(move |_| content_stack_clone2.set_visible_child(&content_stack_clone2.visible_child().expect("null").prev_sibling().unwrap()));
|
||||
window.present();
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,18 @@ pub fn eula_page(content_stack: >k::Stack) {
|
||||
eula_selection_text.add_css_class("medium_sized_text");
|
||||
|
||||
let eula_buffer = gtk::TextBuffer::builder()
|
||||
.text("WE OWN YOU\nWE OWN YOUR SOUL\nWE OWN YOUR WIFE\nWE OWN YOUR FIRST BORN\nWE OWN YOUR HOUSE\nWE OWN YOUR FOOD\nWE OWN YOUR CAR\nWE WILL TRACK YOU\nWE WILL FIND YOU\nTHEN WE WILL KILL YOU")
|
||||
.text("There are a few things to keep in mind:
|
||||
1 - You understand that this distribution is -NOT- to be considered an ‘Ubuntu Flavor’.
|
||||
2 - This is a hobby distribution, so we will try our best to provide formal support but it will -NOT- be guaranteed.
|
||||
3 - Although PikaOS might provide identical patches and user experience to the Nobara project, we are -NOT- directly a part of them so questions and bug reports should not be sent directly to them (they dont have to deal with it!)
|
||||
4 - While the installer is running DO NOT INTERRUPT IT! or you will end up with a corrupted system.
|
||||
5 - Try to use pikman instead of apt when using the terminal, it is much faster!
|
||||
6 - You understand the xone driver downloads needed binaries locally and does not directly package or distribute any copyrighted firmware or other related data.
|
||||
7 - Automatic partitioning will format all partitons on a drive, so if you want to dualboot make a separate EFI partition for PikaOS and use manual partitioning
|
||||
8 - In case you need the login info for this session:
|
||||
- username: pikaos
|
||||
- password:
|
||||
MEANING: JUST PRESS ENTER")
|
||||
.build();
|
||||
|
||||
let eula_selection_text_view = gtk::TextView::builder()
|
||||
|
Loading…
Reference in New Issue
Block a user