File tree 6 files changed +50
-4
lines changed
6 files changed +50
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ npm run lint
46
46
47
47
## Compiles and minifies for production
48
48
49
- ** N.B.** : the build process includes ** electron publish** , a * .env * file with the ` GITHUB_TOKEN ` environment variable set is required.
49
+ ** N.B.** : the build process includes ** electron publish** , a _ .env _ file with the ` GITHUB_TOKEN ` environment variable set is required.
50
50
51
51
``` bash
52
52
# Linux
@@ -60,6 +60,12 @@ npm run electron:build -- --mac -p always # With GitHub publish
60
60
# Windows
61
61
npm run electron:build -- --win # Without publish
62
62
npm run electron:build -- --win -p always # With GitHub publish
63
+
64
+ # Flatpak
65
+ # ⚠️ The flatpak and flatpak-builder packages need to be installed in order to build Flatpak bundles. ⚠️
66
+ npm run electron:build -- --linux flatpak
67
+ # Install and run the flatpak package
68
+ flatpak install --user mqtt5-explorer-[VERSION]-linux-x86_64.flatpak && flatpak run com.omniaevo.mqtt5_explorer
63
69
```
64
70
65
71
## Customize configuration
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mqtt5-explorer" ,
3
- "version" : " 1.15 .0" ,
3
+ "version" : " 1.16 .0" ,
4
4
"private" : false ,
5
5
"license" : " GPLv3" ,
6
6
"description" : " A simple MQTT client that supports MQTT5 protocol." ,
Original file line number Diff line number Diff line change 125
125
</div >
126
126
</div >
127
127
<v-divider class =" mb-2" />
128
+ <div row >
129
+ <v-text-field
130
+ v-bind:value =" clientId"
131
+ v-bind:outlined =" outline"
132
+ label =" Current client ID"
133
+ style =" max-width : 35% "
134
+ readonly
135
+ disabled
136
+ />
137
+ <v-text-field
138
+ v-model =" connectionData.clientId"
139
+ v-bind:outlined =" outline"
140
+ label =" Override client ID"
141
+ clearable
142
+ />
143
+ </div >
144
+ <v-divider class =" mb-2" />
128
145
<div row >
129
146
<v-combobox
130
147
v-model =" connectionData.topics"
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class ConnectionProperties {
13
13
password = undefined ;
14
14
tls = false ;
15
15
caCert = undefined ;
16
+ clientId = undefined ;
16
17
clientCert = undefined ;
17
18
clientKey = undefined ;
18
19
caCertPath = undefined ;
@@ -53,6 +54,7 @@ class ConnectionProperties {
53
54
this . username = properties . username ;
54
55
this . password = properties . password ;
55
56
this . caCert = properties . caCert ;
57
+ this . clientId = properties . clientId ;
56
58
this . clientCert = properties . clientCert ;
57
59
this . clientKey = properties . clientKey ;
58
60
this . caCertPath = properties . caCertPath ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class Connection {
53
53
54
54
connect ( clientProps , onConnect , onClose ) {
55
55
const options = {
56
- clientId : clientProps . clientId ,
56
+ clientId : this . #properties . clientId || clientProps . clientId ,
57
57
protocolVersion : this . #properties. version ,
58
58
rejectUnauthorized : this . #properties. validateCertificate ,
59
59
keepalive : clientProps . keepalive ,
@@ -63,6 +63,8 @@ class Connection {
63
63
clean : true ,
64
64
} ;
65
65
66
+ console . log ( options ) ;
67
+
66
68
if ( this . #properties. username ) {
67
69
options . username = this . #properties. username ;
68
70
}
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ module.exports = {
54
54
nodeIntegration : true ,
55
55
contextIsolation : true ,
56
56
builderOptions : {
57
- appId : " com.omniaevo.${name}" ,
57
+ appId : ` com.omniaevo.${ builderOpts . appStrings . executableName } ` ,
58
58
artifactName : "${name}-${version}-${platform}-${arch}.${ext}" ,
59
59
productName : "MQTT5 Explorer" ,
60
60
publish : [ ...builderOpts . appRepos ] ,
@@ -63,6 +63,25 @@ module.exports = {
63
63
icon : "build/icon/" ,
64
64
target : [ "AppImage" ] ,
65
65
} ,
66
+ flatpak : {
67
+ runtime : "org.freedesktop.Platform" ,
68
+ runtimeVersion : "23.08" ,
69
+ sdk : "org.freedesktop.Sdk" ,
70
+ base : "org.electronjs.Electron2.BaseApp" ,
71
+ baseVersion : "23.08" ,
72
+ category : builderOpts . appCategories . linux ,
73
+ description : builderOpts . appStrings . description ,
74
+ desktop : {
75
+ StartupWMClass : builderOpts . appStrings . executableName ,
76
+ } ,
77
+ finishArgs : [
78
+ "--share=ipc" ,
79
+ "--socket=x11" ,
80
+ "--socket=pulseaudio" ,
81
+ "--share=network" ,
82
+ ] ,
83
+ synopsis : builderOpts . appStrings . synopsis ,
84
+ } ,
66
85
appImage : {
67
86
category : builderOpts . appCategories . linux ,
68
87
description : builderOpts . appStrings . description ,
You can’t perform that action at this time.
0 commit comments