fix: link client app installation guide from options page

pull/113/head
dessant 5 years ago
parent 0db1d7559e
commit 57611ac664

@ -465,9 +465,20 @@
"description": "Text of the button."
},
"linkText_installGuide": {
"message": "Installation guide",
"description": "Text of the link."
},
"pageContent_optionClientAppDownloadDesc": {
"message": "Download and install the client app to enable user input simulation.",
"description": "Page content."
"message": "Download and install the client app to enable user input simulation. $INSTALLGUIDE$",
"description": "Page content.",
"placeholders": {
"installGuide": {
"content": "$1",
"example": "Installation guide"
}
}
},
"pageContent_optionClientAppOSError": {

@ -110,8 +110,9 @@
</div>
<div class="client-bownload" v-if="showClientAppNotice">
<div class="download-desc">
{{ getText('pageContent_optionClientAppDownloadDesc') }}
<div class="download-desc"
v-html="getText('pageContent_optionClientAppDownloadDesc',
[`<a target='_blank' rel='noreferrer' href='${installGuideUrl}'>${getText('linkText_installGuide')}</a>`])">
</div>
<div class="download-error" v-if="!clientAppDownloadUrl">
{{ getText('pageContent_optionClientAppOSError') }}
@ -197,6 +198,7 @@ export default {
showClientAppNotice: false,
clientAppDownloadUrl: '',
installGuideUrl: '',
options: {
speechService: '',
@ -223,6 +225,7 @@ export default {
if (!this.clientAppDownloadUrl) {
const {os, arch} = await getPlatform();
if (clientAppPlatforms.includes(`${os}/${arch}`)) {
this.installGuideUrl = `https://github.com/dessant/buster-client/wiki/Installing-the-client-app#${os}`;
this.clientAppDownloadUrl = `https://github.com/dessant/buster-client/releases/download/v${clientAppVersion}/buster-client-setup-v${clientAppVersion}-${os}-${arch}`;
if (os === 'windows') {
this.clientAppDownloadUrl += '.exe';

Loading…
Cancel
Save