-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add action to create .dmg for osx for new releases #83
Add action to create .dmg for osx for new releases #83
Conversation
I'm so excited we're gonna have proper mac support 😀 But let's slow down, I do have some questions: 2, Let's say that someone has v2.1 installed on their Mac. How do they upgrade when v2.2 comes out? Do they just run the new dmg? And if so is this common knowledge or do you think this should be documented? |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
asset_path: ${{ format('Emulsion-OSX.dmg', env.INSTALLER_NAME) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is the same as if you just wrote
asset_path: Emulsion-OSX.dmg
I need to drag and drop the Emulsion.app to the Application folder to install it. For having a background and link to the Application folder we might have to use something like this bash script or a solution like this one
I would say it's a rather common knowledge but this is a tech person point of view. Some software shows a popup with a link to the dmg when a new version is created for example virtual box : |
Hmmm I don't want to ask too much from you. That's my greatest concern right now 😀 But I want to get this installer thingy right. If you tell me what are approximately the image dimensions of for example the Firefox dmg, I'll create a background image with those dimensions, and I'd love if you could then put that background and the Would this be okay for you? |
I understand and it's not too much to ask don't worry. I'm not sure if I will have time to look at it tomorrow but I think I could during the weekend. I will tell you more about the size of the background at this point in time 🙂. |
I added a background image based on the resolution of the window from the screenshot you sent earlier. It is on the master, in In case you need a different resolution image to make it look good, feel free to create another one from the svg. If you do that, you are going to need the Fira Sans font installed on your system. |
Create a Github action to generate a .dmg file containing a .app created with cargo bundle.
The new .dmg has now a background image as well as a link for the Application folder so the user can just drag and drop Emulsion's icon into the Application folder to install it.
Quick update, I tried to create a nice looking .dmg using create-dmg but came across the issue described here : I'm not sure what to do now :( |
Just as a proof for this being possible: https://github.com/Zettlr/Zettlr/blob/707a3c6f2fd5898dc6d64f2dd7d120a07bb9ffc7/.github/workflows/build.yml#L100 |
I tried with the node project which gave me this command to run :
Locally this works perfectly but for some reason when running it inside a Github action I get this error :
I'm not familiar with Github actions, is there a reason for it not to accept options with two parameters ? |
Hmm. It seems that this program only supports the following options.
But that's okay. It's still better than the default window in my opinion. So let's just stick with this nodejs script. So the command is going to be something like
|
Sorry, I got confused between the bash and js projects that where both installed on my machine. I finally managed to create a .dmg. |
Does the fact that the dmg is not signed interfere in any way with installing or using Emulsion? |
No, the only difference I a warning when installing it but it's common. I think you need an apple developer account to sign your .dmg. |
Got it. Well that won't happen soon. Maybe one day... But this is great! Thanks a whole lot I was completely helpless without you. |
Create a Github action to generate a .dmg file containing a .app
created with cargo bundle.