Skip to content

Commit

Permalink
prolinux tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshpenguin committed Nov 1, 2023
1 parent 1784c31 commit e952a24
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions distro-files/layout/etc/bash.bashrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
alias pacman="/opt/pacman-warning.sh"
export WAYLAND_DISPLAY=wayland-0
export PS1='\[\e[38;5;204;1m\][SW] \[\e[0m\][\u@\H \[\e[38;5;69m\]\w\[\e[0m\]]\\$ '
. /opt/kde/usr/lib/libexec/plasma-dev-prefix.sh
2 changes: 1 addition & 1 deletion ocs2-prolinuxd
Binary file added prolinux-tool/app-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions prolinux-tool/prolinux-tool.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=ProLinux Tool
Exec=bash -c 'cd /opt/prolinux-tool && /usr/bin/python3 /opt/prolinux-tool/main.py'

Icon=/opt/prolinux-tool/app-icon.png
Terminal=false
X-KDE-FormFactor=desktop;tablet;handset;
15 changes: 14 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function main() {
exec(`sudo arch-chroot ${ROOTFS_DIR} /bin/bash -x <<'EOF'
set -e
chown root:root /
echo 'Server = ${arch === "arm64" ? "https://fl.us.mirror.archlinuxarm.org/$arch/$repo" : "http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch"}' > /etc/pacman.d/mirrorlist
echo 'Server = ${arch === "arm64" ? "https://fl.us.mirror.archlinuxarm.org/$arch/$repo" : "https://mirror.xenyth.net/archlinux/$repo/os/$arch"}' > /etc/pacman.d/mirrorlist
sed -i "s/#ParallelDownloads = 5/ParallelDownloads = 5/g" /etc/pacman.conf
Expand Down Expand Up @@ -152,6 +152,19 @@ EOF`);
sudo cp -v distro-files/plctl ${ROOTFS_DIR}/usr/sbin/
popd
`);
/* ------------- ProLinux GUI Tool ------------- */
// copy ./prolinux-tool to /opt/prolinux-tool
// make a .desktop file that runs /opt/prolinux-tool/prolinux-tool
exec(`
set -e
pushd .
cd ${__dirname}/../prolinux-tool
sudo mkdir -pv ${ROOTFS_DIR}/opt/prolinux-tool
sudo cp -rv * ${ROOTFS_DIR}/opt/prolinux-tool/
sudo cp -v prolinux-tool.desktop ${ROOTFS_DIR}/usr/share/applications/
popd
`);

if(PROLINUX_VARIANT === "mobile" && PROLINUX_CHANNEL === "dev") {
/* ------------- ProLinux Mobile Dev (Plasma Mobile Nightly / kdesrc-build ) ------------- */
Expand Down

0 comments on commit e952a24

Please sign in to comment.