Compare commits
No commits in common. "main" and "2023-06-08.beta.2" have entirely different histories.
main
...
2023-06-08
10 changed files with 41 additions and 149 deletions
17
.github/workflows/build.yaml
vendored
17
.github/workflows/build.yaml
vendored
|
@ -9,11 +9,8 @@ env:
|
||||||
api_key: ${{ secrets.GITHUB_TOKEN }}
|
api_key: ${{ secrets.GITHUB_TOKEN }}
|
||||||
name: ${{ github.event.repository.name }}
|
name: ${{ github.event.repository.name }}
|
||||||
release_name: ${{ github.ref_name }}
|
release_name: ${{ github.ref_name }}
|
||||||
GH_TOKEN: ${{ github.token }}
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
|
@ -21,17 +18,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install Packages via Pacman
|
- name: Install Packages via Pacman
|
||||||
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub github-cli reflector p7zip
|
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pip reflector
|
||||||
|
- name: Install Python packages via pip
|
||||||
|
run: pip install -U pip pyGithub
|
||||||
- name: Change Arch docker mirror
|
- name: Change Arch docker mirror
|
||||||
run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
|
run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: mkarchiso -v iso/
|
run: mkarchiso -v iso/
|
||||||
- name: Upload iso to the release
|
- name: Upload iso to the release
|
||||||
run: |
|
run: python tools/upload_asset.py
|
||||||
cd ./out
|
|
||||||
mkdir iso_parts
|
|
||||||
# split -d -b 2000M "$(ls *.iso)" iso_parts/"$(ls *.iso)"_part
|
|
||||||
#zip -s 2000m iso_parts/"$(ls *.iso)".zip "$(ls *.iso)"
|
|
||||||
7z -v1000m a iso_parts/"$(ls *.iso)".zip "$(ls *.iso)"
|
|
||||||
md5sum iso_parts/* > iso_parts/md5sums.txt
|
|
||||||
gh release upload ${{ github.event.release.tag_name }} ./iso_parts/* -R ${{ github.repository }}
|
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +0,0 @@
|
||||||
out/
|
|
||||||
work/
|
|
60
build.sh
60
build.sh
|
@ -1,60 +0,0 @@
|
||||||
#!/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 packeges 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
|
|
||||||
makezip
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo -e "$Red###os cant supported###$reset"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
install() {
|
|
||||||
set -e
|
|
||||||
pacman -Sy; pacman --noconfirm -S --needed git archiso github-cli p7zip
|
|
||||||
}
|
|
||||||
build() {
|
|
||||||
set -e
|
|
||||||
mkarchiso -v iso/
|
|
||||||
}
|
|
||||||
makezip() {
|
|
||||||
cd out
|
|
||||||
7z -v500m a "$(ls *.iso)".zip "$(ls *.iso)"
|
|
||||||
md5sum * > md5sums.txt
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
main
|
|
|
@ -1,30 +0,0 @@
|
||||||
################################################################################
|
|
||||||
################# Arch Linux mirrorlist generated by Reflector #################
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# With: reflector @/etc/xdg/reflector/reflector.conf
|
|
||||||
# When: 2023-11-09 08:09:08 UTC
|
|
||||||
# From: https://archlinux.org/mirrors/status/json/
|
|
||||||
# Retrieved: 2023-11-09 08:06:51 UTC
|
|
||||||
# Last Check: 2023-11-09 07:54:59 UTC
|
|
||||||
Server = https://mirror.arvancloud.ir/archlinux/$repo/os/$arch
|
|
||||||
Server = https://america.mirror.pkgbuild.com/$repo/os/$arch
|
|
||||||
Server = https://sydney.mirror.pkgbuild.com/$repo/os/$arch
|
|
||||||
Server = https://archlinux.thaller.ws/$repo/os/$arch
|
|
||||||
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
|
|
||||||
Server = https://mirror.cyberbits.eu/archlinux/$repo/os/$arch
|
|
||||||
Server = https://mirror.moson.org/arch/$repo/os/$arch
|
|
||||||
Server = https://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch
|
|
||||||
Server = https://mirror.theo546.fr/archlinux/$repo/os/$arch
|
|
||||||
Server = https://london.mirror.pkgbuild.com/$repo/os/$arch
|
|
||||||
Server = https://seoul.mirror.pkgbuild.com/$repo/os/$arch
|
|
||||||
Server = https://archlinux.mailtunnel.eu/$repo/os/$arch
|
|
||||||
Server = https://md.mirrors.hacktegic.com/archlinux/$repo/os/$arch
|
|
||||||
Server = https://mirror.sunred.org/archlinux/$repo/os/$arch
|
|
||||||
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/$repo/os/$arch
|
|
||||||
Server = https://mirrors.niyawe.de/archlinux/$repo/os/$arch
|
|
||||||
Server = https://mirror.pseudoform.org/$repo/os/$arch
|
|
||||||
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
|
|
||||||
Server = https://at.arch.mirror.kescher.at/$repo/os/$arch
|
|
||||||
Server = https://de.arch.mirror.kescher.at/$repo/os/$arch
|
|
||||||
Server = https://asia.mirror.pkgbuild.com/$repo/os/$arch
|
|
|
@ -1,3 +1,3 @@
|
||||||
timeout 15
|
timeout 15
|
||||||
default 01-archiso-x86_64-linux.conf
|
default 01-archiso-x86_64-linux.conf
|
||||||
beep off
|
beep on
|
||||||
|
|
|
@ -7,7 +7,7 @@ base
|
||||||
base-devel
|
base-devel
|
||||||
bind
|
bind
|
||||||
brltty
|
brltty
|
||||||
broadcom-wl-dkms
|
#broadcom-wl
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
clonezilla
|
clonezilla
|
||||||
cloud-init
|
cloud-init
|
||||||
|
@ -79,6 +79,7 @@ nmap
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
nvme-cli
|
nvme-cli
|
||||||
open-iscsi
|
open-iscsi
|
||||||
|
open-vm-tools
|
||||||
openconnect
|
openconnect
|
||||||
openssh
|
openssh
|
||||||
openvpn
|
openvpn
|
||||||
|
@ -133,17 +134,12 @@ zsh
|
||||||
archlinux-keyring
|
archlinux-keyring
|
||||||
openssl-1.1
|
openssl-1.1
|
||||||
openssl
|
openssl
|
||||||
gvfs
|
|
||||||
gvfs-mtp
|
|
||||||
networkmanager
|
|
||||||
android-file-transfer
|
android-file-transfer
|
||||||
calamares
|
gvfs-mtp
|
||||||
calamares-parch
|
broadcom-wl-dkms
|
||||||
boost
|
|
||||||
boost-libs
|
|
||||||
device-mapper
|
|
||||||
|
|
||||||
#Desktop
|
#Desktop
|
||||||
|
cutefish
|
||||||
sddm
|
sddm
|
||||||
cutefish-cursor-themes-git
|
cutefish-cursor-themes-git
|
||||||
sddm-theme-astronaut
|
sddm-theme-astronaut
|
||||||
|
@ -153,35 +149,30 @@ plasma-nm
|
||||||
konsole
|
konsole
|
||||||
firefox
|
firefox
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#cutefish-desktop
|
|
||||||
cutefish-calculator
|
|
||||||
cutefish-core
|
|
||||||
cutefish-dock
|
|
||||||
cutefish-filemanager
|
|
||||||
cutefish-icons
|
|
||||||
#cutefish-kwin-plugins
|
|
||||||
cutefish-launcher
|
|
||||||
cutefish-qt-plugins
|
|
||||||
cutefish-screenlocker
|
|
||||||
cutefish-settings
|
|
||||||
cutefish-statusbar
|
|
||||||
cutefish-wallpapers
|
|
||||||
konsole
|
|
||||||
parch-cutefish-fix
|
|
||||||
|
|
||||||
|
|
||||||
#systemutils
|
#systemutils
|
||||||
btop
|
btop
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
packagekit-qt5
|
packagekit-qt5
|
||||||
neofetch-git
|
neofetch-git
|
||||||
|
keepassxc
|
||||||
|
geany
|
||||||
|
gwenview
|
||||||
|
okular
|
||||||
|
mpv
|
||||||
|
ibus
|
||||||
|
parch-firefox-config
|
||||||
|
ttf-ms-fonts
|
||||||
|
motrix-bin
|
||||||
|
|
||||||
#ParchLinux Core Packages
|
#parchlinuxstuff
|
||||||
|
calamares
|
||||||
|
parchlinux-cala-config
|
||||||
os-prober
|
os-prober
|
||||||
paru
|
paru
|
||||||
parch-emoji-ios
|
|
||||||
vazirmatn-fonts
|
|
||||||
parch-branding
|
parch-branding
|
||||||
parch-pacman
|
parch-pacman
|
||||||
|
parch-os-wallpapers
|
||||||
|
parch-emoji-ios
|
||||||
|
warpinator
|
||||||
|
estedad-fonts
|
||||||
|
vazirmatn-fonts
|
||||||
|
|
|
@ -34,7 +34,7 @@ Architecture = auto
|
||||||
#NoProgressBar
|
#NoProgressBar
|
||||||
CheckSpace
|
CheckSpace
|
||||||
#VerbosePkgLists
|
#VerbosePkgLists
|
||||||
#ParallelDownloads = 5
|
ParallelDownloads = 5
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# 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.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
|
|
@ -9,8 +9,8 @@ iso_version="$(date +%Y.%m.%d)"
|
||||||
install_dir="arch"
|
install_dir="arch"
|
||||||
buildmodes=('iso')
|
buildmodes=('iso')
|
||||||
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito'
|
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito'
|
||||||
'uefi-x64.systemd-boot.esp'
|
'uefi-ia32.grub.esp' 'uefi-x64.systemd-boot.esp'
|
||||||
'uefi-x64.systemd-boot.eltorito')
|
'uefi-ia32.grub.eltorito' 'uefi-x64.systemd-boot.eltorito')
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
pacman_conf="pacman.conf"
|
pacman_conf="pacman.conf"
|
||||||
airootfs_image_type="squashfs"
|
airootfs_image_type="squashfs"
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 470 KiB |
|
@ -9,7 +9,7 @@ from github import Github
|
||||||
|
|
||||||
logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
|
logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
|
||||||
|
|
||||||
api_key = os.getenv("API_KEY", None)
|
api_key = os.getenv("api_key", None)
|
||||||
current_date = datetime.today().strftime("%Y-%m-%d")
|
current_date = datetime.today().strftime("%Y-%m-%d")
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,29 +28,29 @@ file_name = _path.name
|
||||||
|
|
||||||
hash = _compute_sha256(path)
|
hash = _compute_sha256(path)
|
||||||
|
|
||||||
repo_name = os.getenv("REPO_NAME", None)
|
repo_name = os.getenv("name", None)
|
||||||
release_name = os.getenv("RELEASE_NAME", None)
|
release_name = os.getenv("release_name", None)
|
||||||
|
|
||||||
logging.info("Starting at %s", current_date)
|
logging.info("Starting at %s", current_date)
|
||||||
|
|
||||||
if not (repo_name and api_key and release_name):
|
if not (repo_name and api_key and release_name):
|
||||||
logging.error(
|
logging.error(
|
||||||
"'REPO_NAME'/'API_KEY'/'RELEASE_NAME' not found in your environment vars."
|
"'repo_name'/'api_key'/'release_name' not found in your envs."
|
||||||
"please add this and run again."
|
"please add this and run again"
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
gh = Github(api_key)
|
gh = Github(api_key)
|
||||||
print(repo_name, api_key)
|
print(repo_name, api_key)
|
||||||
repo = gh.get_repo(repo_name)
|
repo = gh.get_repo(f"parchlinux/{repo_name}")
|
||||||
|
|
||||||
release = repo.get_release(release_name)
|
release = repo.get_release(release_name)
|
||||||
|
|
||||||
logging.info("Statrting upload ISO to release")
|
logging.info("statrting Upload ISO to release")
|
||||||
|
|
||||||
release.upload_asset(path=path)
|
release.upload_asset(path=path)
|
||||||
logging.info("ISO uploaded.")
|
logging.info("ISO upload is done")
|
||||||
|
|
||||||
# update release
|
# update release
|
||||||
msg = (
|
msg = (
|
||||||
|
@ -60,6 +60,6 @@ msg = (
|
||||||
| :---: | :---: |
|
| :---: | :---: |
|
||||||
| {file_name} | {hash} |"""
|
| {file_name} | {hash} |"""
|
||||||
)
|
)
|
||||||
logging.info("Starting update release msg with: \n %s" % msg)
|
logging.info("Starting Update release msg with: \n %s" % msg)
|
||||||
release.update_release(name=release.tag_name, message=msg)
|
release.update_release(name=release.tag_name, message=msg)
|
||||||
logging.info("Release update is done.")
|
logging.info("Release Update is done.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue