Friday, February 21, 2025

How to upload app to macOS

1. Open Terminal

  • Press Cmd (⌘) + Space, type Terminal, and hit Enter.

2. Navigate to Your Build Output Directory

Your .app file is likely located in the publish folder within your project directory. Run:

 cd /path/to/your/project/bin/Release/net8.0-macos/publish

Replace /path/to/your/project with the actual location of your project.

3. Run the productbuild Command

Now, create a .pkg file:

productbuild --component YourApp.app /Applications YourApp.pkg

Replace YourApp.app with your actual .app file name.

4. Verify the Output

After running the command, you should see YourApp.pkg in the same directory.

Let me know if you run into issues! 🚀

No comments:

Post a Comment

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...