Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/workflows/build-zip.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/greetings.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/test.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/update-assignees.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ temp.txt
npm-debug.log*
yarn-debug.log*
yarn-error.log*
temp.txt
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.18.2
2 changes: 2 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
"compile:packageJSON": "node ./bin/modules/postbuild/index.js",
"prebuild": "run-s compile:app compile:packageJSON",
"build": "./node_modules/.bin/electron-builder",
"build:sign": "npx ts-node ./scripts/sign.ts --esModuleInterop --resolveJsonModule",
"postinstall": "run-s prebuild install:deps",
"install:deps": "electron-builder install-app-deps",
"make:release": "node ./bin/modules/release/index.js",
"release": "electron-builder --publish always"
},
"dependencies": {
"@electron/osx-sign": "^1.0.5",
"body-parser": "^1.20.2",
"chokidar": "^3.5.3",
"cors": "^2.8.5",
Expand Down
23 changes: 23 additions & 0 deletions app/scripts/sign.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { exec } from 'child_process'
import { displayName, version } from '../package.json'

const appName = displayName.replace(/\s+/g, '') // Replace spaces in the display name
const appPath = `./dist/v${version}/mac-arm64/${appName}.app`

const signApp = () => {
const command = `electron-osx-sign "${appPath}" --identity='Developer ID Application' --no-gatekeeper-assess`

exec(command, (error, stdout, stderr) => {
if (error) {
console.error(`Error: ${error.message}`)
return
}
if (stderr) {
console.error(`Stderr: ${stderr}`)
return
}
console.log(`Output: ${stdout}`)
})
}

signApp()
2 changes: 2 additions & 0 deletions app/src/shared/utils/httpFileServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ export const startHttpFileServer = (electronApp: Electron.App, port: number = 77

sendDebugMessage('debug - name', req.file.originalname)
sendDebugMessage('debug - path', req.file.path)
sendDebugMessage('debug - upload input path', fs.readdirSync(uploadsDir).join(', '))

// @ts-expect-error -- test token
sendDebugMessage('debug - token', req?.token)
sendDebugMessage('debug - file', req.file)
Expand Down
Loading