Skip to content

Commit

Permalink
decl interfaces together, and save the build output
Browse files Browse the repository at this point in the history
  • Loading branch information
kashyab12 committed May 24, 2024
1 parent 0f327ad commit 85ff2db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 7 additions & 7 deletions src/scripts/installed-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -45,6 +38,13 @@ export interface DesktopFile {
type: string;
}

export interface InstalledAppsInfo {
desktopPath: string;
iconPath: string;
b64Icon: string;
execCmd: string
}

export type AppInfo = Record<string, InstalledAppsInfo>

// todo: use worker threads to make concurrent.
Expand Down

0 comments on commit 85ff2db

Please sign in to comment.