Rework the wizard APK downloading, install directly instead of telling the user to use ADB. Add setting to choose which game to start automatically.

This commit is contained in:
Guillaume Meunier
2024-10-10 23:26:09 +02:00
parent 2bb1f8278c
commit 26d271b907
23 changed files with 1809 additions and 769 deletions
+80 -59
View File
@@ -23,9 +23,6 @@
<property name="subTitle">
<string/>
</property>
<attribute name="pageId">
<string notr="true">0</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<spacer name="verticalSpacer">
@@ -80,6 +77,19 @@
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_release_info">
<property name="text">
<string>Getting latest release information...</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="check_sideload">
<property name="text">
@@ -151,9 +161,6 @@
<property name="subTitle">
<string/>
</property>
<attribute name="pageId">
<string notr="true">1</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<spacer name="verticalSpacer_8">
@@ -211,16 +218,13 @@
</item>
</layout>
</widget>
<widget class="QWizardPage" name="page_3_sideload_install">
<widget class="QWizardPage" name="page_3_sideload_devmode">
<property name="title">
<string>Install the WiVRn app on your headset</string>
</property>
<property name="subTitle">
<string/>
</property>
<attribute name="pageId">
<string notr="true">2</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<spacer name="verticalSpacer_10">
@@ -266,52 +270,30 @@
</layout>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>Run the following command to install the client:</string>
<spacer name="verticalSpacer_12">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
<property name="sizeType">
<enum>QSizePolicy::Policy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_device_detected">
<property name="text">
<string notr="true">label_device_detected</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,1">
<item>
<widget class="QPushButton" name="copy_adb_command">
<property name="toolTip">
<string>Copy to clipboard</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset theme="edit-copy-symbolic"/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_adb_install">
<property name="font">
<font>
<family>Noto Sans Mono</family>
</font>
</property>
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="text">
<string notr="true">adb install wivrn.apk</string>
</property>
<property name="textInteractionFlags">
<set>Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_11">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
@@ -325,16 +307,58 @@
</item>
</layout>
</widget>
<widget class="QWizardPage" name="page_4_connect_hmd">
<widget class="QWizardPage" name="page_4_sideload_install">
<property name="title">
<string>Install the WiVRn app on your headset</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Installing...</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="adb_install_logs">
<property name="font">
<font>
<family>Noto Sans Mono</family>
</font>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="plainText">
<string notr="true"/>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWizardPage" name="page_5_connect_hmd">
<property name="title">
<string>Start the WiVRn app and connect to this computer</string>
</property>
<property name="subTitle">
<string/>
</property>
<attribute name="pageId">
<string notr="true">3</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<spacer name="verticalSpacer_14">
@@ -422,16 +446,13 @@
</item>
</layout>
</widget>
<widget class="QWizardPage" name="page_5_start_game">
<widget class="QWizardPage" name="page_6_start_game">
<property name="title">
<string>Finished</string>
</property>
<property name="subTitle">
<string/>
</property>
<attribute name="pageId">
<string notr="true">4</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<spacer name="verticalSpacer_16">