Skip to content

Commit 0f563e2

Browse files
committed
Fixing logging string app startup
1 parent 7a74416 commit 0f563e2

File tree

5 files changed

+40
-13
lines changed

5 files changed

+40
-13
lines changed

.github/workflows/automaticBuildingWin.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,24 @@ jobs:
6767
env:
6868
VERSION: ${{ steps.get-tag.outputs.VERSION }}
6969

70+
- name: Archive Windows blockmap
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: windows-built-blockmap
74+
path: ./build/dist/MEDomicsLab-${{ env.VERSION }}-win.exe.blockmap
75+
compression-level: 0
76+
env:
77+
VERSION: ${{ steps.get-tag.outputs.VERSION }}
78+
79+
- name: Archive Windows latest.yml file
80+
uses: actions/upload-artifact@v4
81+
with:
82+
name: windows-built-latest
83+
path: ./build/dist/latest.yml
84+
compression-level: 0
85+
env:
86+
VERSION: ${{ steps.get-tag.outputs.VERSION }}
87+
7088
# Publish to GitHub
7189
publish:
7290
needs: [build-windows]
@@ -80,6 +98,16 @@ jobs:
8098
with:
8199
name: windows-built
82100

101+
- name: Download Windows blockmap
102+
uses: actions/download-artifact@v4
103+
with:
104+
name: windows-built-blockmap
105+
106+
- name: Download Windows latest.yml file
107+
uses: actions/download-artifact@v4
108+
with:
109+
name: windows-built-latest
110+
83111
- name: Install zip
84112
run: sudo apt-get install zip
85113

@@ -108,6 +136,8 @@ jobs:
108136
with:
109137
files: |
110138
./MEDomicsLab-${{ env.VERSION }}-win.exe
139+
./MEDomicsLab-${{ env.VERSION }}-win.exe.blockmap
140+
./latest.yml
111141
./MEDomicsLab-PythonEnv-win.zip
112142
name: MEDomicsLab-${{ env.VERSION }}
113143
body: |

go_executables/server_go_win32.exe

0 Bytes
Binary file not shown.

main/background.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ autoUpdater.autoInstallOnAppQuit = true
4545
// on macOS: ~/Library/Logs/{app name}/main.log
4646
// on Windows: %USERPROFILE%\AppData\Roaming\{app name}\logs\main.log
4747
const APP_NAME = isProd ? "medomicslab-application" : "medomicslab-application (development)"
48-
const WINDOWS_ELECTRON_LOG_PATH = path.join(process.env.USERPROFILE, "AppData", "Roaming", APP_NAME, "logs", "main.log")
49-
const MAC_ELECTRON_LOG_PATH = path.join(process.env.HOME, "Library", "Logs", APP_NAME, "main.log")
50-
const LINUX_ELECTRON_LOG_PATH = path.join(process.env.HOME, ".config", APP_NAME, "logs", "main.log")
5148

5249
const originalConsoleLog = console.log
5350
/**
@@ -83,7 +80,7 @@ autoUpdater.on("update-available", (info) => {
8380
console.log("DEBUG: update available")
8481
sendStatusToWindow(`Update available. ${info}`)
8582
let pth = autoUpdater.downloadUpdate()
86-
console.log("DEBUG: pth:", pth)
83+
console.log("DEBUG: pth:" + pth)
8784
sendStatusToWindow(`Downloading update... ${pth}`)
8885
})
8986
autoUpdater.on("update-not-available", (info) => {

main/helpers/create-window.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ export default function createWindow(windowName, options) {
7272
})
7373

7474
win.showMessage = (message) => {
75-
win.webContents.send('logging', message)
76-
console.log("[DEBUG] Message sent to renderer, message: ", message)
75+
win.webContents.send("logging", message)
76+
console.log("[DEBUG] Message sent to renderer, message: " + message)
7777
}
78-
78+
7979
win.on("close", saveState)
8080

8181
return win

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "medomicslab-application",
44
"description": "MEDomicsLab application",
5-
"version": "1.0.0",
5+
"version": "1.0.3",
66
"author": "MEDomicsLab Team",
77
"main": "app/background.js",
88
"repository": "https://github.com/MEDomics-UdeS/MEDomicsLab",
@@ -64,11 +64,11 @@
6464
},
6565
"afterPack": "build/afterPack.js",
6666
"publish": {
67-
"provider": "github",
68-
"owner": "MEDomics-UdeS",
69-
"repo": "MEDomicsLab",
70-
"releaseType": "draft"
71-
},
67+
"provider": "github",
68+
"owner": "MEDomics-UdeS",
69+
"repo": "MEDomicsLab",
70+
"releaseType": "draft"
71+
},
7272
"afterAllArtifactBuild": "build/afterAllArtifactBuild.js"
7373
},
7474
"scripts": {

0 commit comments

Comments
 (0)