-
Notifications
You must be signed in to change notification settings - Fork 529
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 armv7l support to scripts #712
Conversation
@@ -16,7 +16,7 @@ type DebianOptions = { | |||
// required | |||
src: string | |||
dest: string | |||
arch: 'amd64' | 'i386' | 'arm64' | |||
arch: 'amd64' | 'i386' | 'arm64' | 'armhf' |
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.
🎨 As a first step for this work I'd happily take the API changes required to enable ARM support. I think the changes below this line will impact CI, but seeing this helps me think about how we could make this smoother (detect the environment and then pass this through to the packaging stages).
If you wanted to open a fresh PR with just those API changes let me know, otherwise I'll see if I can make time over the weekend to do the same...
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 force pushed removed those changes. making the other api changes isn't too urgent (since dugite-native still needs changes to its buildscripts as well). but this is a start (and means less patching when I go to build)
7f155b8
to
184924c
Compare
I believe this is just a helper module for inspecting The docs for /**
* The operating system CPU architecture for which the Node.js binary was compiled.
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
*
* ```js
* import { arch } from 'process';
*
* console.log(`This processor architecture is ${arch}`);
* ```
* @since v0.5.0
*/
readonly arch: string; I think adding these values to this type here would help us flush out some unknowns:
|
Yep, I don't believe it's critical for our needs but it's a thing to keep in mind (particularly |
I'm happy to flip this to "Ready for review" here now that CI is passing, unless you had extra you wanted to pull in at this stage @theofficialgman... |
no its consistent, arm referring to armv7l/armhf, and then arm64 referring to aarch64/arm64. |
no not right now, you can merge. I'm not a professional developer so I don't really know the correct way of doing the things I mentioned in the first post #712 (comment) ideally I'd like microsoft to host arm32 and arm64 linux github action runners... because until then its a bit harder to make anything with the CI (unless you host a local custom runner) |
I don't have access to anything that could serve as a local runner, but let's see if we can make it easier to test things locally in the near term... |
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
* add armv7l support to scripts * lint fix new files Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Co-authored-by: Brendan Forster <github@brendanforster.com>
Assists with #251
Description
adds armv7l as necessary to buildscripts. There is more work that needs to be done to actually build locally on armv7l systems, as currently the windows
electron-winstaller
still installs on linux systems. this prevents building aselectron-winstaller
looks for a windows arm32 binary which does not exist. to test this, I had to fully remove windows building. thepackage.json
. andscript/package.ts
will need to be reworked to not require these windows only dependencies when run on linuxthe changes I made to the package-*.ts scripts will also need to be changed to allow for build time customization (instead of hardcoding them to the new values)
to help with the mapping:
deb requires: armhf or arm64
appimage requires: --armv7l or --arm64
rpm requires: armv7l or aarch64
app/src/lib/get-architecture.ts should also be updated but I'm not sure the correct format for that
you can find my arm64 and armhf manually created test builds here: https://github.com/theofficialgman/testing/releases/tag/github-desktop
(with builds for dugite-native as well)