From 755b9e92bdf9076307987d5aaeee9469659f94dc Mon Sep 17 00:00:00 2001 From: tkleinke Date: Mon, 10 Jun 2024 12:46:54 +0200 Subject: [PATCH] Add debug messages [notarize] --- desktop/electron/geopackage.js | 7 ++++++- desktop/src/app/components/import/import.component.ts | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/desktop/electron/geopackage.js b/desktop/electron/geopackage.js index e1d949da54..7abd4027df 100644 --- a/desktop/electron/geopackage.js +++ b/desktop/electron/geopackage.js @@ -15,7 +15,12 @@ electron.ipcMain.handle('readGeopackage', async (_, path) => { async function readGeopackage(filePath) { - setCanvasKitWasmLocateFile(fileName => global.toolsPath + '/' + fileName); + console.log('Reading geopackage file:', filePath); + + setCanvasKitWasmLocateFile(fileName => { + console.log('Path to canvas kit wasm file:', global.toolsPath + '/' + fileName); + return global.toolsPath + '/' + fileName + }); const geoPackage = await GeoPackageAPI.open(filePath); const featureTablesNames = geoPackage.getFeatureTables(); diff --git a/desktop/src/app/components/import/import.component.ts b/desktop/src/app/components/import/import.component.ts index f3ff420363..7dee3ffab7 100644 --- a/desktop/src/app/components/import/import.component.ts +++ b/desktop/src/app/components/import/import.component.ts @@ -446,6 +446,8 @@ export class ImportComponent implements OnInit { private async testReadingGeopackage() { + console.log('Test importing geopackage file from path:', this.importState.filePath); + const returnValue = await ipcRenderer.invoke('readGeopackage', this.importState.filePath); if (returnValue.error) {