From 85ff2db460397c0e6ec44229dbc7c708562b62e5 Mon Sep 17 00:00:00 2001 From: kashyaba Date: Fri, 24 May 2024 03:06:00 -0700 Subject: [PATCH] decl interfaces together, and save the build output --- .github/workflows/npm.yml | 7 +++++++ src/scripts/installed-apps.ts | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index a28905a..64d0806 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -26,3 +26,10 @@ jobs: run: | npm install npm run make + + # Upload the build output as an artifact + - name: Output + uses: actions/upload-artifact@v3 + with: + name: build-output # Name of the artifact + path: out/make/ # Path to the build output directory diff --git a/src/scripts/installed-apps.ts b/src/scripts/installed-apps.ts index 9dbe5c4..ec23cd9 100644 --- a/src/scripts/installed-apps.ts +++ b/src/scripts/installed-apps.ts @@ -5,13 +5,6 @@ import { App } from "electron"; const execAsync = promisify(exec) -export interface InstalledAppsInfo { - desktopPath: string; - iconPath: string; - b64Icon: string; - execCmd: string -} - const enum DesktopFilePaths { AppsUsrShare = "/usr/share/applications", IconsUsrShare = "/usr/share/icons", @@ -45,6 +38,13 @@ export interface DesktopFile { type: string; } +export interface InstalledAppsInfo { + desktopPath: string; + iconPath: string; + b64Icon: string; + execCmd: string +} + export type AppInfo = Record // todo: use worker threads to make concurrent.