|
21 | 21 | + [New Features Tutorial 2.0](#overvue-v20-how-to)
|
22 | 22 | + [New Features Tutorial 3.0](#overvue-v30-how-to)
|
23 | 23 | * [Installation](#installation)
|
| 24 | + + [General Installation](#installation) |
| 25 | + + [For WSL](#wsl-installation) |
| 26 | + + [For Slack OAuth](#slack-oauth) |
24 | 27 | * [Contributing](#contributing)
|
25 | 28 | * [Authors](#authors)
|
26 | 29 |
|
@@ -167,22 +170,66 @@ Install dependencies
|
167 | 170 | ```
|
168 | 171 | npm i
|
169 | 172 | ```
|
| 173 | +To open Vuejs devtools (devtools should be open before devmode, otherwise, you can justforce reload electron app in dev mode after opening dev tools) |
| 174 | +``` |
| 175 | +./node_modules/.bin/vue-devtools |
| 176 | +``` |
170 | 177 | To run electron app in dev mode
|
171 | 178 | ```
|
172 | 179 | quasar dev -m electron
|
173 | 180 | ```
|
174 |
| -To open Vuejs devtools |
| 181 | +To build a new .dmg / windows .exe |
175 | 182 | ```
|
176 |
| -
|
| 183 | +quasar build -m electron |
177 | 184 | ```
|
178 |
| -**For WSL users, the ability to load the application requires a tool/application to run a linux display as WSL does not have any display drivers |
179 |
| -since it is based off of just a CLI. |
180 |
| -I recommend X410 (https://www.microsoft.com/en-us/p/x410/9nlp712zmn9q), althought it does cost $15, for ease of use. There are free options such as VcXsrv(https://sourceforge.net/projects/vcxsrv/) that you can get, but require more set up.** |
| 185 | +### WSL Installation |
181 | 186 |
|
182 |
| -To build a new .dmg / windows .exe |
| 187 | +**The ability to load the application and/or devtools requires a tool/application to run a linux display as WSL does not have any display drivers since it is based off of just a CLI. |
| 188 | +I recommend X410 (https://x410.dev/), althought it does cost $15, for ease of use. There are free options such as VcXsrv(https://sourceforge.net/projects/vcxsrv/) that you can get, but requires more set up.** |
| 189 | + |
| 190 | +If you choose to use x410, you will need to set the environment DISPLAY variable on each console: |
| 191 | + |
| 192 | +So, to open either the Vue devtools or OverVue in dev mode, first start your X Server then enter into the terminal: |
| 193 | +For WSL 1 : |
183 | 194 | ```
|
184 |
| -quasar build -m electron |
| 195 | +export DISPLAY=:0 |
185 | 196 | ```
|
| 197 | +For WSL 2 : |
| 198 | +``` |
| 199 | +export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 |
| 200 | +export LIBGL_ALWAYS_INDIRECT=1 |
| 201 | +``` |
| 202 | +followed by the command for the devtools or devmode. If you want both open, enter commands above followed by starting the devtools: |
| 203 | +``` |
| 204 | +./node_modules/.bin/vue-devtools |
| 205 | +``` |
| 206 | +Then open a new terminal instance, set the DISPLAY value again (re-enter above command for DISPLAY), and start OverVue in dev mode: |
| 207 | +``` |
| 208 | +quasar dev -m electron |
| 209 | +``` |
| 210 | + |
| 211 | +### Slack OAuth |
| 212 | + |
| 213 | +For the Slack OAuth, you will need to create a Slack app through their website (https://api.slack.com/apps?new_app=1), so that you have your own Client Secret and Client ID. Then create two .env files (one for development and one for production). |
| 214 | + |
| 215 | + 1. Create a Slack App from the link above. Copy your Client ID and Client Secret somewhere safe. |
| 216 | + 2. Create two .env files in the main root of this repository. Name them: |
| 217 | + ``` |
| 218 | + .env |
| 219 | + .env.development |
| 220 | + ``` |
| 221 | + 3. Open .env and add these three environment variables. Replace <client secret> and <client id> with the client id and client secret given to you when you created your Slack App. |
| 222 | + ``` |
| 223 | + SLACK_CLIENT_SECRET = "<client secret>" |
| 224 | + SLACK_CLIENT_ID = "<client id>" |
| 225 | + SLACK_REDIRECT_URI = "overvue://slack" |
| 226 | + ``` |
| 227 | + 4. Next, open .env.development and do the same, just note that the SLACK_REDIRECT_URI will be different here: |
| 228 | + ``` |
| 229 | +SLACK_CLIENT_SECRET = "<client secret>" |
| 230 | +SLACK_CLIENT_ID = "<client id>" |
| 231 | +SLACK_REDIRECT_URI = "overvuedev://test" |
| 232 | + ``` |
186 | 233 |
|
187 | 234 | [↥Back to top](#table-of-contents)
|
188 | 235 |
|
|
0 commit comments