mirror of
https://github.com/onionshare/onionshare.git
synced 2025-12-15 00:09:45 -05:00
Switch to installing pre-compiled binaries of Qt5
This commit is contained in:
parent
9f6691b91d
commit
35cc598976
1 changed files with 17 additions and 32 deletions
|
|
@ -48,42 +48,27 @@ parts:
|
||||||
- python3-pyqt5
|
- python3-pyqt5
|
||||||
after: [qt5, tor, obfs4]
|
after: [qt5, tor, obfs4]
|
||||||
|
|
||||||
# For building Qt5, see:
|
# Install Qt5 pre-compiled binary, because it's much simpler than
|
||||||
# https://doc.qt.io/qt-5/linux-building.html
|
# building from source
|
||||||
# https://doc.qt.io/qt-5/linux-requirements.html
|
|
||||||
qt5:
|
qt5:
|
||||||
source: https://download.qt.io/archive/qt/5.14/5.14.0/single/qt-everywhere-src-5.14.0.tar.xz
|
plugin: nil
|
||||||
source-checksum: sha256/be9a77cd4e1f9d70b58621d0753be19ea498e6b0da0398753e5038426f76a8ba
|
|
||||||
source-type: tar
|
|
||||||
plugin: autotools
|
|
||||||
build-packages:
|
build-packages:
|
||||||
- python
|
- xvfb
|
||||||
- libfontconfig1-dev
|
- libdbus-1-3
|
||||||
- libfreetype6-dev
|
- libxkbcommon-x11-0
|
||||||
- libx11-dev
|
|
||||||
- libxext-dev
|
|
||||||
- libxfixes-dev
|
|
||||||
- libxi-dev
|
|
||||||
- libxrender-dev
|
|
||||||
- libxcb1-dev
|
|
||||||
- libx11-xcb-dev
|
|
||||||
- libxcb-glx0-dev
|
|
||||||
- libxkbcommon-x11-dev
|
- libxkbcommon-x11-dev
|
||||||
- libxcb-keysyms1-dev
|
- libfontconfig1
|
||||||
- libxcb-image0-dev
|
override-pull: |
|
||||||
- libxcb-shm0-dev
|
wget https://download.qt.io/official_releases/qt/5.14/5.14.0/qt-opensource-linux-x64-5.14.0.run
|
||||||
- libxcb-icccm4-dev
|
echo "4379f147c6793ec7e7349d2f9ee7d53b8ab6ea4e4edf8ee0574a75586a6a6e0e *qt-opensource-linux-x64-5.14.0.run" | shasum -a 256 --check
|
||||||
- libxcb-sync0-dev
|
chmod +x qt-opensource-linux-x64-5.14.0.run
|
||||||
- libxcb-xfixes0-dev
|
|
||||||
- libxcb-shape0-dev
|
|
||||||
- libxcb-randr0-dev
|
|
||||||
- libxcb-render-util0-dev
|
|
||||||
# Using override-build instead of configflags to avoid problem where
|
|
||||||
# there's the `--prefix=` flag without any way to set the value
|
|
||||||
override-build: |
|
override-build: |
|
||||||
./configure -opensource -confirm-license -no-opengl -nomake examples -nomake tests
|
# qt-installer-script.js
|
||||||
make
|
echo "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();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();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()};" > qt-installer-script.js
|
||||||
make install DESTDIR="${SNAPCRAFT_PART_INSTALL}"
|
# Disable Qt installer from phoning home via hosts file
|
||||||
|
echo "127.0.0.1 iapi.qt.io.herokudns.com" >> /etc/hosts
|
||||||
|
# Install Qt5
|
||||||
|
xvfb-run ./qt-opensource-linux-x64-5.14.0.run --script qt-installer-script.js --verbose
|
||||||
|
|
||||||
tor:
|
tor:
|
||||||
source: https://dist.torproject.org/tor-0.4.2.7.tar.gz
|
source: https://dist.torproject.org/tor-0.4.2.7.tar.gz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue