Testing: Calamares compile

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2024-01-16 19:34:37 +09:00
parent c85563b3ce
commit 7a05a9e90c
3 changed files with 17 additions and 26 deletions

View File

@ -8,27 +8,4 @@ rm -f /etc/alternatives/desktop-theme
# Then re-add it
ln -s /usr/share/desktop-base/lines-theme /etc/alternatives/desktop-theme
set -e
# install dependencies use for calamares
apt install \
qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev \
cmake python3-pyqt5 qttools5-dev libqt5svg5-dev \
libyaml-cpp-dev libpolkit-qt5-1-dev libkf5coreaddons-dev \
qttools5-dev-tools extra-cmake-modules libkf5crash-dev -y
# Clone the Calamares installer
git clone https://github.com/calamares/calamares.git /opt/calamares
# change to Calamares
cd /opt/calamares
# Create a folder called build
mkdir build
# Change into the build directory
cd /opt/calamares/build
# Check the make source
cmake ..
# Compile it
make
# Install Calamares
make install

View File

@ -212,7 +212,7 @@ def shared_folders():
src_paths = ('/plymouth/lines',
'/application',
'/font',
'/hooks/live',
#'/hooks/live',
'/issue',
'/issue',
'/polkit',
@ -231,7 +231,7 @@ def shared_folders():
des_paths =('/usr/share/plymouth/themes/lines',
'/usr/share/applications',
'/usr/share/fonts/pepconf',
'/usr/lib/live/config',
#'/usr/lib/live/config',
'/etc',
'/opt/pepconf',
'/usr/share/polkit-1/actions',
@ -381,9 +381,15 @@ def fusato_configs():
src_paths = ('/hooks/normal',)
des_paths = ('/hooks/normal',)
src_paths_l = ('/hooks/live',)
des_paths_l = ('/hooks/live',)
src_q = collections.deque(src_paths)
des_q = collections.deque(des_paths)
src_q_l = collections.deque(src_paths_l)
des_q_l = collections.deque(des_paths_l)
size_q = len(src_q)
size_q_l = len(src_q_l)
for size_length in range(size_q):
source = src_q.popleft()
des = des_q.popleft()
@ -392,6 +398,14 @@ def fusato_configs():
HOME_FOLDER + FUSATOCONFIG + des,
dirs_exist_ok = True
)
for size_length in range(size_q_l):
source = src_q_l.popleft()
des = des_q_l.popleft()
logger.info(MSG_COPY+ HOME_FOLDER + source)
shutil.copytree(HOME_FOLDER + source,
HOME_FOLDER + FUSATOCONFIG + des,
dirs_exist_ok = True
)
logger.info(MSG_FIN + HOME_FOLDER + WPCHROOT + des)