Add FreeBSD support (#1163)

Co-authored-by: Hiroki Tagato <tagattie@gmail.com>
This commit is contained in:
Li-Wen Hsu
2023-08-09 17:11:27 +08:00
committed by GitHub
parent 2b61ea82ec
commit a0f92941fc
2 changed files with 31 additions and 2 deletions

View File

@@ -81,6 +81,10 @@ export default class HakEnv {
return this.target.platform === "linux";
}
public isFreeBSD(): boolean {
return this.target.platform === "freebsd";
}
public getTargetArch(): Arch {
return this.target.arch;
}
@@ -102,6 +106,6 @@ export default class HakEnv {
}
public wantsStaticSqlCipher(): boolean {
return !this.isLinux() || process.env.SQLCIPHER_BUNDLED == "1";
return !(this.isLinux() || this.isFreeBSD()) || process.env.SQLCIPHER_BUNDLED == "1";
}
}