initial release of parch Gnome

Parch Gnome edition with support of qt/gtk theme and some parch apps

THIS IS AN ALPHA RELEASE.
This commit is contained in:
Sohrab Behdani 2023-03-23 15:48:42 +04:30
parent c2d68eb3aa
commit 23f974b8df
8 changed files with 98 additions and 22 deletions

View file

@ -1,13 +1,14 @@
# This workflow will build an Arch Linux ISO file with the commit on it
name: Build Arch ISO with ArchInstall Commit
name: build parchiso per release
on:
release:
types:
- created
env:
api_key: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.event.repository.name }}
release_name: ${{ github.event.release.name }}
release_name: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
@ -15,10 +16,6 @@ jobs:
image: archlinux:latest
options: --privileged
steps:
- uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- uses: actions/checkout@v3
- name: Install Packages via Pacman
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pip
@ -27,4 +24,5 @@ jobs:
- name: Build image
run: mkarchiso -v iso/
- name: Upload iso to the release
run: python tools/upload_assest.py
run: python tools/upload_asset.py

View file

@ -0,0 +1,6 @@
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
QT_QPA_PLATFORMTHEME=gtk2

View file

@ -0,0 +1,4 @@
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=liveuser
WaylandEnable=false

View file

@ -1,7 +0,0 @@
[Autologin]
Relogin=false
User=liveuser
Session=plasma
[Theme]
Current=breeze-dark

View file

@ -1 +1 @@
/usr/lib/systemd/system/sddm.service
/usr/lib/systemd/system/gdm.service

View file

@ -29,13 +29,13 @@ ethtool
exfatprogs
f2fs-tools
fatresize
falkon
fsarchiver
git
gnu-netcat
gpart
gpm
gptfdisk
gvfs
grml-zsh-config
grub
hdparm
@ -80,7 +80,6 @@ nmap
ntfs-3g
nvme-cli
open-iscsi
open-vm-tools
openconnect
openssh
openvpn
@ -94,7 +93,6 @@ pv
python
python-psutil
python-systemd
qemu-guest-agent
refind
#reflector
reiserfsprogs
@ -116,6 +114,7 @@ testdisk
tmux
tpm2-tss
udftools
udisks2
usb_modeswitch
usbmuxd
usbutils
@ -138,14 +137,18 @@ openssl-1.1
openssl
#Desktop
gnome
firefox
unzip
unrar
#systemutils
btop
xdg-user-dirs
packagekit-qt5
neofetch
neofetch-git
keepassxc
octopi-git
#parchlinuxstuff
@ -155,3 +158,12 @@ os-prober
paru
parch-branding
parch-pacman
parch-os-wallpapers
qt5-styleplugins
parch-dorood
warpinator
appimagelauncher
estedad-fonts
hack-nerd-fonts
parch-emoji-ios
emote

View file

@ -5,8 +5,6 @@ iso_name="Parchlinux"
iso_label="PARCH_$(date +%Y%m)"
iso_publisher="Parch Linux <https://github.com/parch-os/>"
iso_application="Parch Linux Live/Rescue CD"
#gpg_key="BC9DCC3C9A0B047F53065EEBFB8554F927F96E60"
#gpg_signer="KomeilParseh <ahmdparsh129@gmail.com>"
iso_version="$(date +%Y.%m.%d)"
install_dir="arch"
buildmodes=('iso')

65
tools/upload_asset.py Normal file
View file

@ -0,0 +1,65 @@
import hashlib
import logging
import os
import sys
from datetime import datetime
from pathlib import Path
from github import Github
logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
api_key = os.getenv("api_key", None)
current_date = datetime.today().strftime("%Y-%m-%d")
def _compute_sha256(file_name):
hash_sha256 = hashlib.sha256()
with open(file_name, "rb") as f:
for chunk in iter(lambda: f.read(4096), b""):
hash_sha256.update(chunk)
return hash_sha256.hexdigest()
_path = list(Path().cwd().glob("out/*.iso"))[0]
path = _path.as_posix()
file_name = _path.name
hash = _compute_sha256(path)
repo_name = os.getenv("name", None)
release_name = os.getenv("release_name", None)
logging.info("Starting at %s", current_date)
if not (repo_name and api_key and release_name):
logging.error(
"'repo_name'/'api_key'/'release_name' not found in your envs."
"please add this and run again"
)
sys.exit(1)
gh = Github(api_key)
print(repo_name, api_key)
repo = gh.get_repo(f"parchlinux/{repo_name}")
release = repo.get_release(release_name)
logging.info("statrting Upload ISO to release")
release.upload_asset(path=path)
logging.info("ISO upload is done")
# update release
msg = (
release.body
+ f"""
| name | sha256 |
| :---: | :---: |
| {file_name} | {hash} |"""
)
logging.info("Starting Update release msg with: \n %s" % msg)
release.update_release(name=release.tag_name, message=msg)
logging.info("Release Update is done.")