-
Notifications
You must be signed in to change notification settings - Fork 25
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
Install Elastic #456
Install Elastic #456
Conversation
Co-authored-by: Gold856 <[email protected]>
Co-authored-by: Jade <[email protected]>
Co-authored-by: Jade <[email protected]>
Co-authored-by: Jade <[email protected]>
Co-authored-by: Tyler Veness <[email protected]>
Co-authored-by: Gold856 <[email protected]>
Elastic fails to run on macArm on macOS 15.1, possibly because it isn't notarized or another signing problem. |
I might have been chasing something else. After the installer is run, elastic isn't unzipped. When I manually unzip it, it runs. While I was troubleshooting, I downloaded Elastic direct from GitHub and after unzipping both the WPILib and the regular versions, they didn't run for me. |
To fix the extraction, it needs code in the tools updater similar to AdvantageScope WPILibInstaller-Avalonia/apps/ToolsUpdater/src/main/java/Program.java Lines 98 to 117 in 0c7f627
WPILibInstaller-Avalonia/apps/ToolsUpdater/src/main/java/Program.java Lines 132 to 133 in 0c7f627
|
I'm looking into implementing this extraction, and I noticed that the AdvantageScope file extension for macos is a I'm not entirely familiar with development on MacOS, is the If necessary I can change the zip format and finish up the next release within the next few days |
I thought that it might be a problem, but the zip extracts and runs on my Mac, so I don't think it's necessary to change to .tar.gz, although that would be a more standard for Mac and Linux. |
When extracting it on macos, did you have to extract it twice? I noticed that there was a zip file in the zip file |
I just did some playing around with the CI, turns out it was putting the zip file within another zip file when uploading. There isn't an easy way to get around it besides manually extracting it before manually uploading it to the release. I'll copy the code that AdvantageScope has for extracting and use it for this. The changes won't work until the next release which should be somewhat soon. |
I didn't look specifically. The gui extracted automatically, but may have handled the double zipping seamlessly. .tar.gz is standard for Mac and Linux. |
The double zip is actually needed to ensure the bundle contents stay unchanged. If you try to upload the raw .app bundle as a GitHub Actions artifact, it will actually change permissions (and possibly some other things), which will causes the integrity checks to fail (since the contents aren't exactly the same). AdvantageScope is packaged the same way for Mac, with a double archive, one of which gets stripped during the installer build process, and then the final extraction happening on the user's computer. Elastic could stay as a zip, as long as macOS has |
I see, that explains why the double zip is needed. I'll probably keep Elastic in the The second extraction will keep failing until the next release since it's trying to find a This does raise the question though of how to sign this with the WPILib signature, since at some point during the build process it would have to be double extracted, and then zipped again. Not sure how this should be done without having it lose the signature. |
How soon? WPILib is planning another beta release this weekend, and it would be very nice to get Elastic in. |
Normal extraction and compression shouldn't mess with the signature. It's just the way that Gradle does it that does. |
I'm just waiting for one more PR to be finished and then it'll be ready to release, so it should be ready within the next day or so. After the release I'll just have to update the tag in |
@sciencewhiz the new update + build should fix the macos extraction, let me know if there are any issues with it besides notarization |
It's still double compressed, a tar.gz is inside the zip, so it doesn't get successfully extracted in the ToolsUpdater |
iirc isn't it supposed to be double compressed and it gets extracted twice during the installation? |
Looking at how advantagescope is structured with its wpilib mac release, I think I see what I was doing wrong, this should hopefully fix it |
It's no longer double compressed, but the tar.gz didn't get extracted |
That's odd, it should have the same logic as advantagescope where it gets extracted during installation |
It does extract on a fresh install. I think that's a problem unrelated to this PR that I've seen before |
Windows failure is fixed by #470 |
Resolves #423