Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Jul 11, 2023
1 parent 6a54f94 commit ded0733
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 12 additions & 9 deletions package/src/macos/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ export async function makeInstallerMac(config: Configuration) {
"entitlements.plist",
);

// Sign these non-binary files and don't include
// the entitlements declaration
const signWithoutEntitlements: string[] = [
join(config.directoryInfo.pkgWorking.bin, "quarto.js"),
join(config.directoryInfo.pkgWorking.bin, "quarto"),
];


// Sign these executable / binary files
// and include our entitlements declaration
const signWithEntitlements: string[] = [];
Expand All @@ -85,14 +93,16 @@ export async function makeInstallerMac(config: Configuration) {
"deno",
));

join(
signWithEntitlements.push(join(
config.directoryInfo.pkgWorking.bin,
"tools",
arch,
"dart-sass",
"src",
"dart",
);
));
signWithoutEntitlements.push(join(config.directoryInfo.pkgWorking.bin, "tools", arch, "dart-sass", "sass"));

signWithEntitlements.push(join(config.directoryInfo.pkgWorking.bin, "tools", arch, "esbuild"));
signWithEntitlements.push(join(config.directoryInfo.pkgWorking.bin, "tools", arch, "pandoc"));
signWithEntitlements.push(join(config.directoryInfo.pkgWorking.bin, "tools", arch, "typst"));
Expand All @@ -110,13 +120,6 @@ export async function makeInstallerMac(config: Configuration) {
});


// Sign these non-binary files and don't include
// the entitlements declaration
const signWithoutEntitlements: string[] = [
join(config.directoryInfo.pkgWorking.bin, "tools", arch, "dart-sass", "sass"),
join(config.directoryInfo.pkgWorking.bin, "quarto.js"),
join(config.directoryInfo.pkgWorking.bin, "quarto"),
];

for (const fileToSign of signWithEntitlements) {
info(fileToSign);
Expand Down
2 changes: 1 addition & 1 deletion package/src/windows/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function makeInstallerWindows(configuration: Configuration) {
const tempDir = Deno.makeTempDirSync();
const workingDistPath = join(tempDir, "dist");
const workingBinPath = join(workingDistPath, "bin");
const workingToolsPath = join(workingBinPath, "tools");
const workingToolsPath = join(workingBinPath, "tools", "x86_64");
copySync(configuration.directoryInfo.pkgWorking.root, workingDistPath);

if (sign) {
Expand Down

0 comments on commit ded0733

Please sign in to comment.