Skip to content

Commit

Permalink
Nightly Merge Wed 27 Nov 2024 13:10:05 GMT
Browse files Browse the repository at this point in the history
  • Loading branch information
toxophilist committed Nov 27, 2024
2 parents 555ef3a + 22ca7c7 commit bec93e4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/development-build-desktop-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ jobs:
if: matrix.os == 'windows-latest' && (failure() || success())
run: |
ls -R ./ocd/dist
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/make/squirrel.windows/x64/ocd-${{ env.OCD_VERSION }}*.exe --clobber
ls ./ocd/dist/make/squirrel.windows/x64
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/make/squirrel.windows/x64/ocd-${{ env.OCD_VERSION }}-Setup.exe --clobber
# gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/release/${{ env.OCD_VERSION }}/ocd-Windows-${{ env.OCD_VERSION }}*x64.exe --clobber
- name: Upload Linux Artifact to Release
if: matrix.os == 'ubuntu-latest' && (failure() || success())
Expand Down
20 changes: 13 additions & 7 deletions ocd/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions ocd/packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@electron-forge/plugin-fuses": "^7.5.0",
"@electron-forge/plugin-vite": "^7.5.0",
"@electron/fuses": "^1.8.0",
"@types/electron-squirrel-startup": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"electron": ">=32.2.0",
Expand All @@ -64,7 +65,7 @@
"@ocd/model": ">=0.2.5",
"@ocd/query": ">=0.2.5",
"@ocd/react": ">=0.2.5",
"oci-sdk": "^2.69.0",
"electron-squirrel-startup": "^1.0.1"
"electron-squirrel-startup": "^1.0.1",
"oci-sdk": "^2.69.0"
}
}
2 changes: 2 additions & 0 deletions ocd/packages/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import { app, dialog, BrowserWindow, ipcMain, screen, Menu, shell, MessageBoxOptions, MenuItemConstructorOptions } from 'electron'
import Squirrel from 'electron-squirrel-startup'
import path from 'path'
import url from 'url'
import fs from 'fs'
Expand All @@ -22,6 +23,7 @@ const isPreview = process.env.OCD_PREVIEW === 'true';
const isMac = process.platform === 'darwin'

// if (require('electron-squirrel-startup')) app.quit()
if (Squirrel) app.quit()
const ocdConfigDirectory = path.join(app.getPath('home'), '.ocd')
const ocdConsoleConfigFilename = path.join(ocdConfigDirectory, 'console_config.json')
const ocdCacheFilename = path.join(ocdConfigDirectory, 'cache.json')
Expand Down
2 changes: 1 addition & 1 deletion ocd/packages/electron-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dev-build": "tsc && NODE_OPTIONS=--max-old-space-size=8192 vite build && electron-builder -c.electronVersion=32.2.0",
"dev-tsc": "tsc",
"dev-vite-build": "NODE_OPTIONS=--max-old-space-size=8192 vite build",
"build": "tsc && vite build && electron-builder -c.electronVersion=32.2.0",
"electron-builder-build": "tsc && vite build && electron-builder -c.electronVersion=32.2.0",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
Expand Down

0 comments on commit bec93e4

Please sign in to comment.