Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
imyanice committed May 2, 2024
1 parent 8589227 commit ceb978a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion 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.

4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ try {
(buildOptions.icon.startsWith('./')
? buildOptions.icon.replace('./', '')
: buildOptions.icon)
console.log(iconPath)
console.log(path.extname(iconPath))
if (
path.extname(iconPath) == '' ||
path.extname(iconPath) !== '.png' ||
Expand All @@ -130,7 +132,7 @@ try {
'.app/Contents/Resources/' +
buildOptions.icon.includes('/')
? // @ts-ignore the array will never be undefined because it contains a "/"
buildOptions.icon.split('/').pop().toString()
iconPath.split('/').pop().toString()
: buildOptions.icon,
err1 => {
if (err1) core.setFailed(err1.message)
Expand Down

0 comments on commit ceb978a

Please sign in to comment.