Fix Windows artifact naming in desktop packaging

- Fix the naming convention in Electron output to align with previous
  artifact naming to not break external/internal URLs.
- In desktop execution tests, make artifact locator logic stricter to
  test regression.
This commit is contained in:
undergroundwires
2023-08-30 13:34:30 +02:00
parent ad0576a752
commit f4d86fccfd
9 changed files with 95 additions and 53 deletions

View File

@@ -16,7 +16,7 @@ import {
SCREENSHOT_PATH,
} from './config';
import { indentText } from './utils/text';
import { ExtractionResult } from './app/extractors/extraction-result';
import { ExtractionResult } from './app/extractors/common/extraction-result';
export async function main(): Promise<void> {
logCurrentArgs();
@@ -47,9 +47,9 @@ async function extractAndRun() {
const extractors: {
readonly [K in SupportedPlatform]: () => Promise<ExtractionResult>;
} = {
[SupportedPlatform.macOS]: () => prepareMacOsApp(DESKTOP_DIST_PATH),
[SupportedPlatform.Linux]: () => prepareLinuxApp(DESKTOP_DIST_PATH),
[SupportedPlatform.Windows]: () => prepareWindowsApp(DESKTOP_DIST_PATH),
[SupportedPlatform.macOS]: () => prepareMacOsApp(DESKTOP_DIST_PATH, PROJECT_DIR),
[SupportedPlatform.Linux]: () => prepareLinuxApp(DESKTOP_DIST_PATH, PROJECT_DIR),
[SupportedPlatform.Windows]: () => prepareWindowsApp(DESKTOP_DIST_PATH, PROJECT_DIR),
};
const extractor = extractors[CURRENT_PLATFORM];
if (!extractor) {