Compare commits
33 commits
2024-08-09
...
main
Author | SHA1 | Date | |
---|---|---|---|
ca0d2d0a30 | |||
23b49dc379 | |||
bc01c3c60d | |||
085f89a5d8 | |||
4237588d3a | |||
a776ad4a95 | |||
76f5aa6b6d | |||
a131e380fa | |||
341feaab43 | |||
36fac961c1 | |||
3b8b359356 | |||
7ff8cb4f5c | |||
543e939e02 | |||
7ad4f6b811 | |||
cd81e1ada8 | |||
673fa4c828 | |||
9adc5d14a9 | |||
607eb83050 | |||
07b0d66092 | |||
0f244bceb9 | |||
8559f51d7f | |||
3dde326825 | |||
10579893f9 | |||
04c3084b5e | |||
e8479cd2e1 | |||
94b368a759 | |||
1771a6f5e4 | |||
90d55a8604 | |||
5df46d809f | |||
055cce2cec | |||
c331d57a93 | |||
e301283fb5 | |||
e550c510df |
5 changed files with 72 additions and 24 deletions
43
.gitlab-ci.yml
Normal file
43
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
image: archlinux/archlinux:base-devel
|
||||||
|
|
||||||
|
variables:
|
||||||
|
Desktop: "cosmic"
|
||||||
|
|
||||||
|
build_iso:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- ./build.sh
|
||||||
|
- echo "Renaming the output ISO file"
|
||||||
|
- mv out/*.iso out/ParchLinux-$Desktop-latest.iso
|
||||||
|
- echo "Generating MD5 checksum"
|
||||||
|
- md5sum out/ParchLinux-$Desktop-latest.iso > out/md5sum.txt
|
||||||
|
- echo "Build completed. Files generated:"
|
||||||
|
- ls -lh out/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- out/ParchLinux-$Desktop-latest.iso
|
||||||
|
- out/md5sum.txt
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
|
||||||
|
deploy_iso:
|
||||||
|
stage: deploy
|
||||||
|
dependencies:
|
||||||
|
- build_iso
|
||||||
|
script:
|
||||||
|
- echo "Installing sshpass and rsync"
|
||||||
|
- pacman -Syu --noconfirm sshpass rsync
|
||||||
|
- echo "Determining the remote directory based on the tag"
|
||||||
|
- if [[ "$CI_COMMIT_TAG" == *"beta"* ]]; then export REMOTE_DIR="/srv/http/beta/$Desktop/"; else export REMOTE_DIR="/srv/http/$Desktop/"; fi
|
||||||
|
- echo "Removing old ISO files from remote directory"
|
||||||
|
- sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$SSH_ROOT rm -rf "$REMOTE_DIR/"
|
||||||
|
- echo "Creating new directory on remote host"
|
||||||
|
- sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$SSH_ROOT mkdir -p "$REMOTE_DIR/"
|
||||||
|
- echo "Uploading new ISO via rsync"
|
||||||
|
- sshpass -p "$PASS" rsync -r out/ParchLinux-$Desktop-latest.iso out/md5sum.txt parch@$SSH_ROOT:"$REMOTE_DIR/"
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
11
README.md
11
README.md
|
@ -1,3 +1,10 @@
|
||||||
# Parch Linux iso template
|
# Parch Linux Cosmic
|
||||||
|
|
||||||
## Use this template for making releases
|
Cosmic is a DE made by System76 in Rust and Iced.
|
||||||
|
|
||||||
|
|
||||||
|
Parch Linux Cosmic features Cosmic DE with a Touch of Parch Linux itself.
|
||||||
|
|
||||||
|
|
||||||
|
## Note:
|
||||||
|
> currently cosmic is in alpha stage and it is not fully finished, use Parch Linux Cosmic only for testing.
|
||||||
|
|
15
build.sh
15
build.sh
|
@ -33,8 +33,7 @@ main() {
|
||||||
install
|
install
|
||||||
echo -e "$Blue### Install complete ###$reset"
|
echo -e "$Blue### Install complete ###$reset"
|
||||||
echo -e "$Green### Start build $reponame with archiso ###$reset"
|
echo -e "$Green### Start build $reponame with archiso ###$reset"
|
||||||
build
|
build
|
||||||
makezip
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "$Red###OS can't supported###$reset"
|
echo -e "$Red###OS can't supported###$reset"
|
||||||
|
@ -42,19 +41,19 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
set -e
|
set -e
|
||||||
pacman -Sy; pacman --noconfirm -S --needed git archiso github-cli p7zip
|
pacman -Sy; pacman --noconfirm -S --needed git wget github-cli p7zip reflector rsync
|
||||||
|
wget https://git.parchlinux.com/repo/ppr/-/raw/main/x86_64/archiso-99-1-any.pkg.tar.zst
|
||||||
|
sudo pacman -U archiso-99-1-any.pkg.tar.zst --noconfirm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
set -e
|
set -e
|
||||||
mkarchiso -v iso/
|
mkarchiso -v iso/
|
||||||
}
|
}
|
||||||
makezip() {
|
|
||||||
cd out
|
|
||||||
7z -v500m a "$(ls *.iso)".zip "$(ls *.iso)"
|
|
||||||
md5sum * > md5sums.txt
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -31,7 +31,6 @@ f2fs-tools
|
||||||
fatresize
|
fatresize
|
||||||
fsarchiver
|
fsarchiver
|
||||||
git
|
git
|
||||||
gnu-netcat
|
|
||||||
gpart
|
gpart
|
||||||
gpm
|
gpm
|
||||||
gptfdisk
|
gptfdisk
|
||||||
|
@ -93,8 +92,6 @@ python
|
||||||
python-psutil
|
python-psutil
|
||||||
python-systemd
|
python-systemd
|
||||||
refind
|
refind
|
||||||
#reflector
|
|
||||||
reiserfsprogs
|
|
||||||
rp-pppoe
|
rp-pppoe
|
||||||
rsync
|
rsync
|
||||||
rxvt-unicode-terminfo
|
rxvt-unicode-terminfo
|
||||||
|
@ -136,26 +133,30 @@ openssl
|
||||||
gvfs
|
gvfs
|
||||||
gvfs-mtp
|
gvfs-mtp
|
||||||
networkmanager
|
networkmanager
|
||||||
android-file-transfer
|
|
||||||
boost
|
boost
|
||||||
sddm
|
sddm
|
||||||
|
|
||||||
#Desktop
|
#Desktop
|
||||||
cosmic-session-git
|
cosmic
|
||||||
|
|
||||||
|
#Essential Apps
|
||||||
|
nheko
|
||||||
|
firefox
|
||||||
|
|
||||||
#systemutils
|
#systemutils
|
||||||
btop
|
btop
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
neofetch-git
|
neofetch-git
|
||||||
fastfetch
|
fastfetch
|
||||||
|
kernel-install-mkinitcpio
|
||||||
|
|
||||||
#ParchLinux Core Packages
|
#ParchLinux Core Packages
|
||||||
parch-welcome
|
parch-welcome
|
||||||
calamares-parch-beta
|
calamares-parch
|
||||||
calamares-git
|
calamares
|
||||||
os-prober
|
os-prober
|
||||||
paru
|
paru
|
||||||
parch-emoji-ios
|
parch-emoji-ios
|
||||||
vazirmatn-fonts
|
ttf-vazirmatn
|
||||||
parch-branding
|
parch-branding
|
||||||
parch-pacman
|
parch-pacman-systemd
|
||||||
|
|
|
@ -74,7 +74,7 @@ LocalFileSigLevel = Optional
|
||||||
|
|
||||||
[ppr]
|
[ppr]
|
||||||
SigLevel = Optional TrustedOnly
|
SigLevel = Optional TrustedOnly
|
||||||
Server = https://raw.githubusercontent.com/parchlinux/ppr/main/x86_64/
|
Server = https://git.parchlinux.com/repo/ppr/-/raw/main/x86_64/
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
@ -96,11 +96,9 @@ Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[pcp]
|
[pcp]
|
||||||
SigLevel = Optional TrustedOnly
|
SigLevel = Optional TrustedOnly
|
||||||
Server = https://raw.githubusercontent.com/parchlinux/pcp/main/x86_64/
|
Server = https://git.parchlinux.com/repo/pcp/-/raw/main/x86_64/
|
||||||
|
|
||||||
|
|
||||||
[chaotic-aur]
|
|
||||||
SigLevel = Never
|
|
||||||
Server = https://geo-mirror.chaotic.cx/$repo/$arch
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
# tips on creating your own repositories.
|
# tips on creating your own repositories.
|
||||||
#[custom]
|
#[custom]
|
||||||
|
|
Loading…
Add table
Reference in a new issue