Add slack-desktop for aarch64 on a native Electron runtime
Slack only publishes an x86_64 Linux build, so the AUR recipe produces an aarch64 package full of x86_64 binaries that cannot start. Run Slack's application code on the AArch64 build of the Electron release it ships with, replace the three native addons Slack requires at boot with JavaScript equivalents, and drop the x86_64 addons it can do without.
This commit is contained in:
1 parent
049d7671e1
commit
418a48bef6
7 files changed
+278
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// Linux builds of electron-native-auth (github.com/clavin/electron-native-auth)
|
||||
// compile src/addon_none.cc: native auth sessions are unavailable and
|
||||
// constructing a request throws. This is the same facade in JavaScript.
|
||||
class AuthRequest {
|
||||
static isAvailable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
constructor() {
|
||||
throw new Error('this function is not implemented for this platform');
|
||||
}
|
||||
}
|
||||
|
||||
exports.AuthRequest = AuthRequest;
|
||||
Reference in new issue
Block a user