road86 / bahis-desk

Desktop application for BAHIS2
GNU General Public License v3.0
2 stars 1 forks source link

feat: add app version to the end of api calls #52

Closed ChasNelson1990 closed 1 year ago

ChasNelson1990 commented 1 year ago

Description

All electron-based API calls now include bahis_desk_app=${APP_VERSION} where the APP_VERSION will match that in package.json.

closes #47 required for road86/bahis-serve#11

Checklist

mixmixmix commented 1 year ago

I've run yarn electron-build and got the following error:

 mix@mixbook  ~/repos/bahis-desk   feat-api-app-version  yarn electron .
yarn run v1.22.18
$ /Users/mix/repos/bahis-desk/node_modules/.bin/electron .
App threw an error during load
Error: Cannot find module './constants'
Require stack:
- /Users/mix/repos/bahis-desk/public/modules/syncFunctions.js
- /Users/mix/repos/bahis-desk/public/electron.js
- /Users/mix/repos/bahis-desk/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js

removed ./dist, and built electron, the error persists