Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notarization Using Script Fails to Execute #117

Open
guiyanakuang opened this issue Jul 13, 2024 · 5 comments
Open

Notarization Using Script Fails to Execute #117

guiyanakuang opened this issue Jul 13, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@guiyanakuang
Copy link

Describe the bug

app {
  mac {
    notarization {
      script = "notarization.sh $ZIP"
    }
  }

The notarization.sh script is in the same directory as conveyor.conf

When running conveyor make site, the following error occurs:
❌ Task failed: Notarized Mac App for ARM: notarization.sh: Command not found (exit code 127)
env: notarization.sh: No such file or directory
Subprocess Failed: notarization.sh: Command not found (exit code 127)
env: notarization.sh: No such file or directory

Expected behavior
The script should be called and the notarization process should proceed normally.

Additional context

  • OS: MacOS 14.5 Intel
  • Version 14.3
@mikehearn
Copy link
Member

Please check that notarization.sh is marked +x executable.

@mikehearn
Copy link
Member

If that doesn't do the trick and you're a commercial user, please open a support ticket by emailing [email protected] and we'll work out why it can't find your script.

@guiyanakuang
Copy link
Author

image

Sorry I am not a commercial user, I am going to open source my project and use conveyor

@mikehearn
Copy link
Member

Double checking, it looks like it can be a bug. It may be looking for the command in the PATH or relative to where you run Conveyor from rather than the documented location next to the config file. Can you try changing the command to be ./notarization.sh and running Conveyor from the directory with the config file in it?

@guiyanakuang
Copy link
Author

You are correct, using ./notarization.sh worked successfully. In fact, I had tried this before asking the question, but for some reason, it didn't work at that time. It's quite strange.

@mikehearn mikehearn added the bug Something isn't working label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants