Qortal UI - Main Code Repository A User Interface for the Qortal Blockchain Project. Truly decentralized web hosting, application hosting, communications, data storage, and full infrastructure for the future global decentralized digital world.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.2 KiB

3 years ago
#!/bin/bash
3 years ago
# Make necessary config and add Qortal Softwares apt repo
3 years ago
# SCript to run UI without sandbox
echo \'/opt/${productFilename}/qortal-ui\' --no-sandbox > '/opt/${productFilename}/run-ui'
chmod +x '/opt/${productFilename}/run-ui'
# Link to run-ui
ln -sf '/opt/${productFilename}/run-ui' '/usr/bin/${executable}'
# SUID chrome-sandbox for Electron 5+
sudo chown root '/opt/${productFilename}/chrome-sandbox' || true
sudo chmod 4755 '/opt/${productFilename}/chrome-sandbox' || true
update-mime-database /usr/share/mime || true
update-desktop-database /usr/share/applications || true
# Install curl if not installed on the system
if ! which curl; then sudo apt-get --yes install curl; fi
# Install apt repository source list if it does not exist
if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep qortal.list; then
2 years ago
curl -sS https://update.qortal.online/qortal.gpg | sudo apt-key add -
2 years ago
sudo rm -rf /usr/share/keyrings/qortal.gpg
11 months ago
sudo apt-key export A9036F04 | sudo gpg --dearmour -o /usr/share/keyrings/qortal.gpg
2 years ago
sudo rm -rf /etc/apt/sources.list.d/qortal.list
2 years ago
echo 'deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/qortal.gpg] https://update.qortal.online/ ./ ' > /etc/apt/sources.list.d/qortal.list
3 years ago
fi