mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Try installing binaries instead of building from source
This commit is contained in:
parent
db9abb789d
commit
bf06bb1081
@ -20,27 +20,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
# https://wiki.qt.io/Building_Qt_5_from_Git
|
|
||||||
- run:
|
- run:
|
||||||
name: build Qt5 from source
|
name: Install Qt5 binaries
|
||||||
command: |
|
command: |
|
||||||
sudo sh -c 'echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list'
|
cd ~/
|
||||||
sudo apt-get update
|
wget https://download.qt.io/official_releases/qt/5.14/5.14.0/qt-opensource-linux-x64-5.14.0.run
|
||||||
sudo apt-get build-dep qt5-default -y
|
chmod +x qt-opensource-linux-x64-5.14.0.run
|
||||||
sudo apt-get install -y libxcb-xinerama0-dev
|
./qt-opensource-linux-x64-5.14.0.run --script ~/repo/.circleci/qt-installer-script.js --platform minimal --verbose
|
||||||
sudo apt-get install -y build-essential perl python git
|
|
||||||
sudo apt-get install -y '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
|
|
||||||
git clone git://code.qt.io/qt/qt5.git ~/qt5
|
|
||||||
cd ~/qt5
|
|
||||||
git checkout 5.14.0
|
|
||||||
perl init-repository
|
|
||||||
export LLVM_INSTALL_DIR=/usr/llvm
|
|
||||||
./configure -developer-build -opensource -confirm-license -nomake examples -nomake tests
|
|
||||||
make -j$(nproc)
|
|
||||||
make install
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y python3-pip xvfb
|
sudo apt-get install -y python3-pip xvfb
|
||||||
|
75
.circleci/qt-installer-script.js
Normal file
75
.circleci/qt-installer-script.js
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
function Controller() {
|
||||||
|
installer.installationFinished.connect(proceed)
|
||||||
|
}
|
||||||
|
|
||||||
|
function logCurrentPage() {
|
||||||
|
var pageName = page().objectName
|
||||||
|
var pagePrettyTitle = page().title
|
||||||
|
console.log("At page: " + pageName + " ('" + pagePrettyTitle + "')")
|
||||||
|
}
|
||||||
|
|
||||||
|
function page() {
|
||||||
|
return gui.currentPageWidget()
|
||||||
|
}
|
||||||
|
|
||||||
|
function proceed(button, delay) {
|
||||||
|
gui.clickButton(button || buttons.NextButton, delay)
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.WelcomePageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
proceed(buttons.NextButton, 2000)
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.CredentialsPageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
page().loginWidget.EmailLineEdit.text = installer.environmentVariable("QT_EMAIL");
|
||||||
|
page().loginWidget.PasswordLineEdit.text = installer.environmentVariable("QT_PASSWORD");
|
||||||
|
proceed()
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.IntroductionPageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
proceed()
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.TargetDirectoryPageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
proceed()
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.ComponentSelectionPageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
page().deselectAll()
|
||||||
|
page().selectComponent("qt.qt5.5140.gcc_64")
|
||||||
|
proceed()
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.LicenseAgreementPageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
page().AcceptLicenseRadioButton.checked = true
|
||||||
|
gui.clickButton(buttons.NextButton)
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.ReadyForInstallationPageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
proceed()
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.PerformInstallationPageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.FinishedPageCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
page().LaunchQtCreatorCheckBoxForm.launchQtCreatorCheckBox.checked = false
|
||||||
|
proceed(buttons.FinishButton)
|
||||||
|
}
|
||||||
|
|
||||||
|
Controller.prototype.DynamicTelemetryPluginFormCallback = function() {
|
||||||
|
logCurrentPage()
|
||||||
|
console.log(Object.keys(page().TelemetryPluginForm.statisticGroupBox))
|
||||||
|
var radioButtons = page().TelemetryPluginForm.statisticGroupBox
|
||||||
|
radioButtons.disableStatisticRadioButton.checked = true
|
||||||
|
proceed()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user