Skip to content

Commit

Permalink
qt-lib: Add architecture flags
Browse files Browse the repository at this point in the history
Change-Id: I5de3290809f7354557ef2cc4d6832bef4ad35157
Reviewed-by: Marcus Tillmanns <[email protected]>
  • Loading branch information
OrkunTokdemir committed Oct 7, 2024
1 parent 8b6891c commit 1b6399b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qt-lib/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export const IsWindows = process.platform === 'win32';
export const IsMacOS = process.platform === 'darwin';
export const IsLinux = process.platform === 'linux';
export const IsUnix = IsMacOS || IsLinux;
export const IsArm64 = os.arch() === 'arm64';
export const IsArm32 = os.arch() === 'arm';
export const Isx86 = os.arch() === 'x86' || os.arch() === 'ia32';
export const Isx64 = os.arch() === 'x64';

export const OSExeSuffix = IsWindows ? '.exe' : '';
export const UserLocalDir = IsWindows
Expand Down

0 comments on commit 1b6399b

Please sign in to comment.