Skip to content

Commit

Permalink
Updated some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bayrakmustafa committed Oct 31, 2023
1 parent 76cc861 commit 0609a23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/setup-codesigner/codesigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,16 @@ export class CodeSigner {

let link = getPlatform() == WINDOWS ? CODESIGNTOOL_WINDOWS_SETUP : CODESIGNTOOL_UNIX_SETUP;
let cmd = getPlatform() == WINDOWS ? CODESIGNTOOL_WINDOWS_RUN_CMD : CODESIGNTOOL_UNIX_RUN_CMD;
core.info(`Downloading CodeSignTool from ${link}`);

const codesigner = path.resolve(process.cwd(), 'codesign');
core.info(`Creating CodeSignTool extract path ${codesigner}`);
if (!existsSync(codesigner)) {
mkdirSync(codesigner);
core.info(`Created CodeSignTool extract path ${codesigner}`);
core.info(`Created CodeSignTool base path ${codesigner}`);
}

let archivePath = path.join(codesigner, CODESIGNTOOL_BASEPATH);
if (!existsSync(archivePath)) {
core.info(`Downloading CodeSignTool from ${link}`);
const downloadedFile = await tc.downloadTool(link);
await extractZip(downloadedFile, codesigner);
core.info(`Extract CodeSignTool from download path ${downloadedFile} to ${codesigner}`);
Expand Down

0 comments on commit 0609a23

Please sign in to comment.