Fiddling with packaging
This commit is contained in:
parent
672c665aec
commit
be52cf7da6
41 changed files with 22 additions and 8 deletions
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.idea/.gitignore
vendored
Normal file → Executable file
0
.idea/.gitignore
vendored
Normal file → Executable file
0
.idea/codeStyles/codeStyleConfig.xml
Normal file → Executable file
0
.idea/codeStyles/codeStyleConfig.xml
Normal file → Executable file
0
.idea/ed-safari.iml
Normal file → Executable file
0
.idea/ed-safari.iml
Normal file → Executable file
0
.idea/modules.xml
Normal file → Executable file
0
.idea/modules.xml
Normal file → Executable file
0
.idea/vcs.xml
Normal file → Executable file
0
.idea/vcs.xml
Normal file → Executable file
5
forge.config.js
Normal file → Executable file
5
forge.config.js
Normal file → Executable file
|
@ -4,7 +4,10 @@ module.exports = {
|
|||
makers: [
|
||||
{
|
||||
name: '@electron-forge/maker-squirrel',
|
||||
config: {},
|
||||
config: {
|
||||
certificateFile: './cert.pfx',
|
||||
certificatePassword: process.env.CERTIFICATE_PASSWORD,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: '@electron-forge/maker-zip',
|
||||
|
|
2
index.html
Normal file → Executable file
2
index.html
Normal file → Executable file
|
@ -3,8 +3,6 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>ED Safari v0.0.1</title>
|
||||
|
||||
<script src="src/assets/ldom.dev.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- CURRENT LOCATION -->
|
||||
|
|
0
journal examples.txt
Normal file → Executable file
0
journal examples.txt
Normal file → Executable file
7
package-lock.json
generated
Normal file → Executable file
7
package-lock.json
generated
Normal file → Executable file
|
@ -24,6 +24,7 @@
|
|||
"@electron-forge/maker-squirrel": "^6.1.1",
|
||||
"@electron-forge/maker-zip": "^6.1.1",
|
||||
"@electron-forge/plugin-vite": "^6.1.1",
|
||||
"@tsconfig/node-lts": "^18.12.2",
|
||||
"@tsconfig/node20": "^1.0.0",
|
||||
"@types/lodash-es": "^4.17.7",
|
||||
"@types/node": "^20.1.2",
|
||||
|
@ -1175,6 +1176,12 @@
|
|||
"node": ">= 10"
|
||||
}
|
||||
},
|
||||
"node_modules/@tsconfig/node-lts": {
|
||||
"version": "18.12.2",
|
||||
"resolved": "https://registry.npmjs.org/@tsconfig/node-lts/-/node-lts-18.12.2.tgz",
|
||||
"integrity": "sha512-1zbWpsZkChnemJsRm+G2EyjuPueNPkjBEfp08ET1uCv0CUL/5AK1IZvFtEsw7ZyEqojIydye3mwt6k8isULj4A==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@tsconfig/node20": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-1.0.0.tgz",
|
||||
|
|
1
package.json
Normal file → Executable file
1
package.json
Normal file → Executable file
|
@ -24,6 +24,7 @@
|
|||
"@electron-forge/maker-squirrel": "^6.1.1",
|
||||
"@electron-forge/maker-zip": "^6.1.1",
|
||||
"@electron-forge/plugin-vite": "^6.1.1",
|
||||
"@tsconfig/node-lts": "^18.12.2",
|
||||
"@tsconfig/node20": "^1.0.0",
|
||||
"@types/lodash-es": "^4.17.7",
|
||||
"@types/node": "^20.1.2",
|
||||
|
|
0
src/@types/edsmResponses.d.ts
vendored
Normal file → Executable file
0
src/@types/edsmResponses.d.ts
vendored
Normal file → Executable file
0
src/@types/journalLines.d.ts
vendored
Normal file → Executable file
0
src/@types/journalLines.d.ts
vendored
Normal file → Executable file
0
src/assets/Eurostile-Roman.woff
Normal file → Executable file
0
src/assets/Eurostile-Roman.woff
Normal file → Executable file
0
src/assets/Eurostile-Roman.woff2
Normal file → Executable file
0
src/assets/Eurostile-Roman.woff2
Normal file → Executable file
0
src/assets/index.css
Normal file → Executable file
0
src/assets/index.css
Normal file → Executable file
0
src/assets/ldom.dev.js
Normal file → Executable file
0
src/assets/ldom.dev.js
Normal file → Executable file
0
src/assets/ldom.dev.js:Zone.Identifier
Normal file → Executable file
0
src/assets/ldom.dev.js:Zone.Identifier
Normal file → Executable file
0
src/data/BodyCodes.ts
Normal file → Executable file
0
src/data/BodyCodes.ts
Normal file → Executable file
0
src/icons/Flaticon.eot
Normal file → Executable file
0
src/icons/Flaticon.eot
Normal file → Executable file
0
src/icons/Flaticon.svg
Normal file → Executable file
0
src/icons/Flaticon.svg
Normal file → Executable file
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 138 KiB |
0
src/icons/Flaticon.ttf
Normal file → Executable file
0
src/icons/Flaticon.ttf
Normal file → Executable file
0
src/icons/Flaticon.woff
Normal file → Executable file
0
src/icons/Flaticon.woff
Normal file → Executable file
0
src/icons/Flaticon.woff2
Normal file → Executable file
0
src/icons/Flaticon.woff2
Normal file → Executable file
0
src/icons/_flaticon.scss
Normal file → Executable file
0
src/icons/_flaticon.scss
Normal file → Executable file
0
src/icons/flaticon.css
Normal file → Executable file
0
src/icons/flaticon.css
Normal file → Executable file
0
src/icons/flaticon.html
Normal file → Executable file
0
src/icons/flaticon.html
Normal file → Executable file
0
src/main.js
Normal file → Executable file
0
src/main.js
Normal file → Executable file
0
src/models/Body.ts
Normal file → Executable file
0
src/models/Body.ts
Normal file → Executable file
0
src/models/EDSM.ts
Normal file → Executable file
0
src/models/EDSM.ts
Normal file → Executable file
3
src/models/Journal.ts
Normal file → Executable file
3
src/models/Journal.ts
Normal file → Executable file
|
@ -15,6 +15,7 @@ import { Body } from "./Body"
|
|||
|
||||
export class Journal extends EventEmitter {
|
||||
#path: string
|
||||
testing: string
|
||||
location: System
|
||||
navRoute: System[]
|
||||
|
||||
|
@ -30,6 +31,8 @@ export class Journal extends EventEmitter {
|
|||
this.#getLastFsdJump()
|
||||
// -> IF no FSD Jump: this.#getLastLocation()
|
||||
// --> this.#getScannedBodies()
|
||||
|
||||
this.testing = this.#path
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------- #getLastFsdJump ---- */
|
||||
|
|
0
src/models/Log.ts
Normal file → Executable file
0
src/models/Log.ts
Normal file → Executable file
6
src/models/Safari.ts
Normal file → Executable file
6
src/models/Safari.ts
Normal file → Executable file
|
@ -15,10 +15,10 @@ export class Safari {
|
|||
journal?: Journal
|
||||
|
||||
private constructor(isPackaged: boolean) {
|
||||
if (!isPackaged) { // Account for WSL during development
|
||||
if (!isPackaged && os.platform() === 'linux') { // Account for WSL during development
|
||||
this.#journalDir = "/mnt/c/Users/marle/Saved\ Games/Frontier\ Developments/Elite\ Dangerous/"
|
||||
} else if (os.platform() === 'win32') { // Windows
|
||||
this.#journalDir = os.homedir() + '\\Saved Games\\Frontier Developments\\Elite Dangerous'
|
||||
this.#journalDir = os.homedir() + '\\Saved Games\\Frontier Developments\\Elite Dangerous\\'
|
||||
} else if (os.platform() === 'linux') { // Linux
|
||||
this.#journalDir = os.homedir() + '/.local/share/Steam/steamapps/compatdata/359320/pfx/drive_c/users/steamuser/Saved Games/Frontier Developments/Elite Dangerous/'
|
||||
} else {
|
||||
|
@ -43,7 +43,7 @@ export class Safari {
|
|||
|
||||
// https://stackoverflow.com/questions/15696218/get-the-most-recent-file-in-a-directory-node-js
|
||||
#getLatestJournal(): Journal|undefined {
|
||||
const journals = globSync(this.#journalPattern)
|
||||
const journals = globSync(this.#journalPattern, {windowsPathsNoEscape: true})
|
||||
const journalPath: string|undefined = _.maxBy(journals, file => fs.statSync(file).mtime)
|
||||
|
||||
if (journalPath) {
|
||||
|
|
0
src/models/System.ts
Normal file → Executable file
0
src/models/System.ts
Normal file → Executable file
2
src/models/UI.js
Normal file → Executable file
2
src/models/UI.js
Normal file → Executable file
|
@ -21,7 +21,7 @@ export class UI {
|
|||
/* -------------------------------------------------------------------- setCurrentSystem ---- */
|
||||
|
||||
static setCurrentSystem(system) {
|
||||
$('#acans').children().remove()
|
||||
$('#scans').children().remove()
|
||||
$('#currentSystem').children().remove()
|
||||
|
||||
let row
|
||||
|
|
0
src/preload.js
Normal file → Executable file
0
src/preload.js
Normal file → Executable file
2
src/renderer.js
Normal file → Executable file
2
src/renderer.js
Normal file → Executable file
|
@ -30,6 +30,8 @@ import 'bootstrap/dist/css/bootstrap.css'
|
|||
import './assets/index.css'
|
||||
import './icons/flaticon.css'
|
||||
|
||||
import './assets/ldom.dev'
|
||||
|
||||
const { app } = require('electron')
|
||||
import { Safari } from './models/Safari'
|
||||
import { UI } from './models/UI'
|
||||
|
|
2
tsconfig.json
Normal file → Executable file
2
tsconfig.json
Normal file → Executable file
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "@tsconfig/node20/tsconfig.json",
|
||||
"extends": "@tsconfig/node-lts/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"useUnknownInCatchVariables": false,
|
||||
"lib": ["DOM"]
|
||||
|
|
0
vite.main.config.mjs
Normal file → Executable file
0
vite.main.config.mjs
Normal file → Executable file
0
vite.preload.config.mjs
Normal file → Executable file
0
vite.preload.config.mjs
Normal file → Executable file
0
vite.renderer.config.mjs
Normal file → Executable file
0
vite.renderer.config.mjs
Normal file → Executable file
Loading…
Reference in a new issue