Compare commits
11 commits
2023-10-05
...
main
Author | SHA1 | Date | |
---|---|---|---|
e0cc8b9dc4 | |||
3aa137df03 | |||
769abac301 | |||
7f18ec51ed | |||
910192db12 | |||
1c56287a95 | |||
ef1b4f0c8c | |||
77579b9e96 | |||
63d76a0c0c | |||
3f1ed9ab87 | |||
f6e6055404 |
22 changed files with 150 additions and 257 deletions
33
.github/workflows/build.yaml
vendored
33
.github/workflows/build.yaml
vendored
|
@ -1,33 +0,0 @@
|
|||
# This workflow will build an Arch Linux ISO file when a release is created.
|
||||
name: build parchiso per release
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
|
||||
jobs:
|
||||
build:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: archlinux:latest
|
||||
options: --privileged
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Packages via Pacman
|
||||
run: |
|
||||
pacman -Suy --noconfirm --noprogressbar
|
||||
pacman -Sy --noconfirm --noprogressbar --needed git archiso python python-pygithub reflector
|
||||
- name: Change pacman mirrors
|
||||
run: |
|
||||
reflector -n 3 --protocol https --save /etc/pacman.d/mirrorlist
|
||||
pacman -Syy
|
||||
- name: Build image
|
||||
run: mkarchiso -v iso/
|
||||
- name: Upload iso to the release
|
||||
env:
|
||||
API_KEY: ${{ secrets.GITHUB_TOKEN }}
|
||||
REPO_NAME: ${{ github.repository }}
|
||||
RELEASE_NAME: ${{ github.ref_name }}
|
||||
run: python tools/upload_asset.py
|
36
.gitlab-ci.yml
Normal file
36
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
image: archlinux/archlinux:base-devel
|
||||
|
||||
variables:
|
||||
Desktop: "mate"
|
||||
|
||||
build_iso:
|
||||
stage: build
|
||||
script:
|
||||
- ./build.sh
|
||||
- echo "Renaming the output ISO file"
|
||||
- mv out/*.iso out/ParchLinux-$Desktop-latest.iso
|
||||
artifacts:
|
||||
paths:
|
||||
- out/ParchLinux-$Desktop-latest.iso
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
|
||||
deploy_iso:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build_iso
|
||||
script:
|
||||
- echo "Installing sshpass and rsync"
|
||||
- pacman -Syu --noconfirm sshpass rsync
|
||||
- echo "Removing old ISO files from remote directory"
|
||||
- sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$SSH_ROOT rm -rf /srv/http/$Desktop/
|
||||
- echo "Creating new directory on remote host"
|
||||
- sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$SSH_ROOT mkdir -p /srv/http/$Desktop/
|
||||
- echo "Uploading new ISO via rsync"
|
||||
- sshpass -p "$PASS" rsync -r out/ParchLinux-$Desktop-latest.iso parch@$SSH_ROOT:/srv/http/$Desktop/
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
|
@ -1,46 +0,0 @@
|
|||
ci:
|
||||
autoupdate_branch: "2.1.x"
|
||||
autoupdate_schedule: monthly
|
||||
repos:
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.32.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: ["--py36-plus"]
|
||||
- repo: https://github.com/asottile/reorder_python_imports
|
||||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: reorder-python-imports
|
||||
name: Reorder Python imports (src, tests)
|
||||
files: "^(?!examples/)"
|
||||
args: ["--application-directories", "src"]
|
||||
additional_dependencies: ["setuptools>60.9"]
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.3.0
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 4.0.1
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
- flake8-bugbear
|
||||
- flake8-implicit-str-concat
|
||||
- repo: https://github.com/peterdemin/pip-compile-multi
|
||||
rev: v2.4.5
|
||||
hooks:
|
||||
- id: pip-compile-multi-verify
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.2.0
|
||||
hooks:
|
||||
- id: fix-byte-order-marker
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.2.0
|
||||
hooks:
|
||||
- id: fix-byte-order-marker
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-case-conflict
|
||||
- id: check-merge-conflict
|
10
README.md
10
README.md
|
@ -1,3 +1,9 @@
|
|||
# Parch Linux iso template
|
||||
# [{width=32px} Parch Linux](https://parchlinux.com) [{width=32px}](https://mate-desktop.org/) MATE desktop (_community version_)
|
||||
|
||||
## Use this template for making releases
|
||||
You can download the live/installation ISO [from the mirror](https://mirror.parchlinux.com/mate/).
|
||||
|
||||
[](https://mirror.parchlinux.com/mate/ParchLinux-mate-latest.iso)
|
||||
|
||||
> **Notice:**
|
||||
> If you encountered any problem with this version, you can start an thread in [Parch Linux forum](https://forum.parchlinux.com/).
|
||||
> Optionally, you can mention the maintainer of this version ([@almasi](https://forum.parchlinux.com/u/almasi/)) in Parch Linux forum.
|
||||
|
|
56
build.sh
Executable file
56
build.sh
Executable file
|
@ -0,0 +1,56 @@
|
|||
#!/usr/bin/bash
|
||||
main() {
|
||||
set -e
|
||||
local Black DarkGray Red LightRed Green LightGreen Brown Yellow Blue LightBlue Purple Light Purple Cyan LightCyan LightGray White reset
|
||||
## Save colors
|
||||
Black="\e[0;30m"
|
||||
DarkGray="\e[1;30m"
|
||||
Red="\e[0;31m"
|
||||
LightRed="\e[1;31m"
|
||||
Green="\e[0;32m"
|
||||
LightGreen="\e[1;32m"
|
||||
Brown="\e[0;33m"
|
||||
Yellow="\e[1;33m"
|
||||
Blue="\e[0;34m"
|
||||
LightBlue="\e[1;34m"
|
||||
Purple="\e[0;35m"
|
||||
Light=Purple="\e[1;35m"
|
||||
Cyan="\e[0;36m"
|
||||
LightCyan="\e[1;36m"
|
||||
LightGray="\e[0;37m"
|
||||
White="\e[1;37m"
|
||||
reset="\e[0m"
|
||||
local reponame
|
||||
reponame=${PWD##*/}
|
||||
|
||||
echo -e "$Green### Start install packages for build $reponame ###$reset"
|
||||
echo -e "$Brown### Checking your OS ###$reset"
|
||||
if type pacman >/dev/null 2>&1;then
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo -e "$Red### You are not in root$reset"
|
||||
exit 1
|
||||
else
|
||||
install
|
||||
echo -e "$Blue### Install complete ###$reset"
|
||||
echo -e "$Green### Start build $reponame with archiso ###$reset"
|
||||
build
|
||||
fi
|
||||
else
|
||||
echo -e "$Red###OS can't supported###$reset"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
install() {
|
||||
set -e
|
||||
pacman -Sy; pacman --noconfirm -S --needed git archiso github-cli p7zip reflector rsync
|
||||
}
|
||||
|
||||
|
||||
build() {
|
||||
set -e
|
||||
mkarchiso -v iso/
|
||||
}
|
||||
|
||||
main
|
|
@ -1,67 +0,0 @@
|
|||
# vim:set ft=sh
|
||||
# MODULES
|
||||
# The following modules are loaded before any boot hooks are
|
||||
# run. Advanced users may wish to specify all system modules
|
||||
# in this array. For instance:
|
||||
# MODULES=(piix ide_disk reiserfs)
|
||||
MODULES=()
|
||||
|
||||
# BINARIES
|
||||
# This setting includes any additional binaries a given user may
|
||||
# wish into the CPIO image. This is run last, so it may be used to
|
||||
# override the actual binaries included by a given hook
|
||||
# BINARIES are dependency parsed, so you may safely ignore libraries
|
||||
BINARIES=()
|
||||
|
||||
# FILES
|
||||
# This setting is similar to BINARIES above, however, files are added
|
||||
# as-is and are not parsed in any way. This is useful for config files.
|
||||
FILES=()
|
||||
|
||||
# HOOKS
|
||||
# This is the most important setting in this file. The HOOKS control the
|
||||
# modules and scripts added to the image, and what happens at boot time.
|
||||
# Order is important, and it is recommended that you do not change the
|
||||
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
|
||||
# help on a given hook.
|
||||
# 'base' is _required_ unless you know precisely what you are doing.
|
||||
# 'udev' is _required_ in order to automatically load modules
|
||||
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
|
||||
# Examples:
|
||||
## This setup specifies all modules in the MODULES setting above.
|
||||
## No raid, lvm2, or encrypted root is needed.
|
||||
# HOOKS=(base)
|
||||
#
|
||||
## This setup will autodetect all modules for your system and should
|
||||
## work as a sane default
|
||||
# HOOKS=(base udev autodetect block filesystems)
|
||||
#
|
||||
## This setup will generate a 'full' image which supports most systems.
|
||||
## No autodetection is done.
|
||||
# HOOKS=(base udev block filesystems)
|
||||
#
|
||||
## This setup assembles a pata mdadm array with an encrypted root FS.
|
||||
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
|
||||
# HOOKS=(base udev block mdadm encrypt filesystems)
|
||||
#
|
||||
## This setup loads an lvm2 volume group on a usb device.
|
||||
# HOOKS=(base udev block lvm2 filesystems)
|
||||
#
|
||||
## NOTE: If you have /usr on a separate partition, you MUST include the
|
||||
# usr, fsck and shutdown hooks.
|
||||
HOOKS=(base udev modconf memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block filesystems keyboard)
|
||||
|
||||
# COMPRESSION
|
||||
# Use this to compress the initramfs image. By default, gzip compression
|
||||
# is used. Use 'cat' to create an uncompressed image.
|
||||
#COMPRESSION="gzip"
|
||||
#COMPRESSION="bzip2"
|
||||
#COMPRESSION="lzma"
|
||||
COMPRESSION="xz"
|
||||
#COMPRESSION="lzop"
|
||||
#COMPRESSION="lz4"
|
||||
#COMPRESSION="zstd"
|
||||
|
||||
# COMPRESSION_OPTIONS
|
||||
# Additional options for the compressor
|
||||
#COMPRESSION_OPTIONS=()
|
2
iso/airootfs/etc/mkinitcpio.conf.d/archiso.conf
Normal file
2
iso/airootfs/etc/mkinitcpio.conf.d/archiso.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
HOOKS=(base udev modconf kms memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs block filesystems keyboard)
|
||||
COMPRESSION="xz"
|
|
@ -3,6 +3,7 @@
|
|||
PRESETS=('archiso')
|
||||
|
||||
ALL_kver='/boot/vmlinuz-linux'
|
||||
ALL_config='/etc/mkinitcpio.conf'
|
||||
archiso_config='/etc/mkinitcpio.conf.d/archiso.conf'
|
||||
|
||||
archiso_image="/boot/initramfs-linux.img"
|
||||
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
# mkinitcpio preset file for the 'linux' package on archiso
|
||||
|
||||
PRESETS=('default' 'fallback')
|
||||
|
||||
ALL_kver='/boot/vmlinuz-linux'
|
||||
ALL_config='/etc/mkinitcpio.conf'
|
||||
|
||||
#default_config="/etc/mkinitcpio.conf"
|
||||
default_image="/boot/initramfs-linux.img"
|
||||
#default_options=""
|
||||
|
||||
#fallback_config="/etc/mkinitcpio.conf"
|
||||
fallback_image="/boot/initramfs-linux-fallback.img"
|
||||
fallback_options="-S autodetect"
|
|
@ -1,7 +1,5 @@
|
|||
title Parch Linux install medium (x86_64, UEFI)
|
||||
sort-key 01
|
||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
initrd /%INSTALL_DIR%/boot/intel-ucode.img
|
||||
initrd /%INSTALL_DIR%/boot/amd-ucode.img
|
||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
title Parch Linux install medium (x86_64, UEFI) with speech
|
||||
sort-key 02
|
||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
initrd /%INSTALL_DIR%/boot/intel-ucode.img
|
||||
initrd /%INSTALL_DIR%/boot/amd-ucode.img
|
||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% accessibility=on
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
title Parch Linux install medium (x86_64, UEFI, Copy to RAM)
|
||||
sort-key 03
|
||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
initrd /%INSTALL_DIR%/boot/intel-ucode.img
|
||||
initrd /%INSTALL_DIR%/boot/amd-ucode.img
|
||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% copytoram
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
title Parch Linux install medium (x86_64, UEFI, Copy to RAM) with speech
|
||||
sort-key 04
|
||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
initrd /%INSTALL_DIR%/boot/intel-ucode.img
|
||||
initrd /%INSTALL_DIR%/boot/amd-ucode.img
|
||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% copytoram accessibility=on
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
title Parch Linux install compatibility medium (x86_64, UEFI)
|
||||
sort-key 05
|
||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% nomodset
|
|
@ -1,3 +1,3 @@
|
|||
timeout 15
|
||||
default 01-archiso-x86_64-linux.conf
|
||||
beep off
|
||||
beep on
|
||||
|
|
|
@ -29,14 +29,14 @@ menuentry "Parch Linux install medium (x86_64, UEFI)" {
|
|||
set gfxpayload=keep
|
||||
search --no-floppy --set=root --label %ARCHISO_LABEL%
|
||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
|
||||
initrd /%INSTALL_DIR%/boot/intel-ucode.img /%INSTALL_DIR%/boot/amd-ucode.img /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
}
|
||||
|
||||
menuentry "Parch Linux install medium with speakup screen reader (x86_64, UEFI)" --hotkey=s {
|
||||
set gfxpayload=keep
|
||||
search --no-floppy --set=root --label %ARCHISO_LABEL%
|
||||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% accessibility=on
|
||||
initrd /%INSTALL_DIR%/boot/intel-ucode.img /%INSTALL_DIR%/boot/amd-ucode.img /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
}
|
||||
|
||||
menuentry "UEFI Shell" {
|
||||
|
|
|
@ -148,7 +148,6 @@ btop
|
|||
xdg-user-dirs
|
||||
packagekit-qt5
|
||||
neofetch-git
|
||||
ttf-dejavu
|
||||
firefox
|
||||
parch-grub
|
||||
network-manager-applet
|
||||
|
@ -165,3 +164,6 @@ parch-welcome
|
|||
fira-code-font
|
||||
fira-code-mono
|
||||
vazirmatn-fonts
|
||||
|
||||
# Community Changes
|
||||
boost
|
||||
|
|
|
@ -34,11 +34,14 @@ Architecture = auto
|
|||
#NoProgressBar
|
||||
CheckSpace
|
||||
#VerbosePkgLists
|
||||
ParallelDownloads = 5
|
||||
#ParallelDownloads = 5
|
||||
DownloadUser = alpm
|
||||
|
||||
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
SigLevel = Required DatabaseOptional
|
||||
SigLevel = Never
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
|
@ -72,6 +75,10 @@ LocalFileSigLevel = Optional
|
|||
#[core-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[ppr]
|
||||
SigLevel = Optional TrustedOnly
|
||||
Server = https://git.parchlinux.com/repo/ppr/-/raw/main/x86_64/
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
|
@ -90,13 +97,10 @@ Include = /etc/pacman.d/mirrorlist
|
|||
#[multilib]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[ppr]
|
||||
SigLevel = Optional TrustedOnly
|
||||
Server = https://raw.githubusercontent.com/parchlinux/ppr/main/x86_64/
|
||||
|
||||
[pcp]
|
||||
SigLevel = Optional TrustedOnly
|
||||
Server = https://raw.githubusercontent.com/parchlinux/pcp/main/x86_64/
|
||||
Server = https://git.parchlinux.com/repo/pcp/-/raw/main/x86_64/
|
||||
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
# tips on creating your own repositories.
|
||||
|
|
|
@ -1,24 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC2034
|
||||
|
||||
iso_name="Parchlinux Mate"
|
||||
iso_label="PARCH_LINUX_MATE_$(date +%Y%m)"
|
||||
iso_publisher="Parch Linux <https://parchlinux.ir>"
|
||||
iso_application="Parch Linux Live/Rescue CD"
|
||||
iso_version="$(date +%Y.%m.%d)"
|
||||
iso_name="Parch Linux Mate"
|
||||
iso_label="ParchLinux_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m)"
|
||||
iso_publisher="Parch Linux <https://Parchlinux.com>"
|
||||
iso_application="Parch Linux Live/Rescue DVD"
|
||||
iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)"
|
||||
install_dir="arch"
|
||||
buildmodes=('iso')
|
||||
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito'
|
||||
'uefi-ia32.grub.esp' 'uefi-x64.systemd-boot.esp'
|
||||
'uefi-ia32.grub.eltorito' 'uefi-x64.systemd-boot.eltorito')
|
||||
'uefi-ia32.systemd-boot.esp' 'uefi-x64.systemd-boot.esp'
|
||||
'uefi-ia32.systemd-boot.eltorito' 'uefi-x64.systemd-boot.eltorito')
|
||||
arch="x86_64"
|
||||
pacman_conf="pacman.conf"
|
||||
airootfs_image_type="squashfs"
|
||||
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M')
|
||||
bootstrap_tarball_compression=('zstd' '-c' '-T0' '--auto-threads=logical' '--long' '-19')
|
||||
file_permissions=(
|
||||
["/etc/shadow"]="0:0:400"
|
||||
["/root"]="0:0:750"
|
||||
["/root/.automated_script.sh"]="0:0:755"
|
||||
["/root/.gnupg"]="0:0:700"
|
||||
["/usr/local/bin/choose-mirror"]="0:0:755"
|
||||
["/usr/local/bin/Installation_guide"]="0:0:755"
|
||||
["/usr/local/bin/livecd-sound"]="0:0:755"
|
||||
|
|
|
@ -5,7 +5,7 @@ It allows you to install Parch Linux or perform system maintenance.
|
|||
ENDTEXT
|
||||
MENU LABEL Parch Linux install medium (x86_64, BIOS)
|
||||
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
INITRD /%INSTALL_DIR%/boot/intel-ucode.img,/%INSTALL_DIR%/boot/amd-ucode.img,/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
|
||||
|
||||
# Accessibility boot option
|
||||
|
@ -16,7 +16,7 @@ It allows you to install Parch Linux or perform system maintenance with speech f
|
|||
ENDTEXT
|
||||
MENU LABEL Parch Linux install medium (x86_64, BIOS) with ^speech
|
||||
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
INITRD /%INSTALL_DIR%/boot/intel-ucode.img,/%INSTALL_DIR%/boot/amd-ucode.img,/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% accessibility=on
|
||||
|
||||
# Copy to RAM boot option
|
||||
|
@ -27,5 +27,17 @@ It allows you to install Parch Linux or perform system maintenance.
|
|||
ENDTEXT
|
||||
MENU LABEL Parch Linux install medium (x86_64, BIOS, Copy to RAM)
|
||||
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
INITRD /%INSTALL_DIR%/boot/intel-ucode.img,/%INSTALL_DIR%/boot/amd-ucode.img,/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% copytoram
|
||||
|
||||
|
||||
# compatibility boot option
|
||||
LABEL arch64compatibility
|
||||
TEXT HELP
|
||||
Boot the Parch Linux install medium on BIOS with compatibility mode.
|
||||
It allows you to install Parch Linux or perform system maintenance.
|
||||
ENDTEXT
|
||||
MENU LABEL Parch Linux install medium (x86_64, BIOS, compatibility)
|
||||
LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux
|
||||
INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img
|
||||
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% nomodset
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 470 KiB After Width: | Height: | Size: 181 KiB |
|
@ -1,65 +0,0 @@
|
|||
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("REPO_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 environment vars."
|
||||
"please add this and run again."
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
gh = Github(api_key)
|
||||
print(repo_name, api_key)
|
||||
repo = gh.get_repo(repo_name)
|
||||
|
||||
release = repo.get_release(release_name)
|
||||
|
||||
logging.info("Statrting upload ISO to release")
|
||||
|
||||
release.upload_asset(path=path)
|
||||
logging.info("ISO uploaded.")
|
||||
|
||||
# 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.")
|
Loading…
Add table
Reference in a new issue