This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require("electron"); | |
const { join } = require("path"); | |
class BrowserWindow extends electron.BrowserWindow { | |
constructor(options) { | |
if (options?.webPreferences?.preload && options.title) { | |
// Replace Discords preload script with our own | |
process.env.DISCORD_PRELOAD = options.webPreferences.preload; | |
options.webPreferences.preload = join(__dirname, "preload.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf src | |
mkdir src | |
cd src | |
echo "Downloading Metamod" | |
curl -sO https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1145-linux.tar.gz | |
echo "Downloading Sourcemod" | |
curl -sO https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6890-linux.tar.gz |
So far, I have modified rtld-elf (the FreeBSD runtime linker) to handle simple MachO objects. It can now successfully load and run a trivial MachO executable built on a Mac with an external library dependency (libSystem.B.dylib - the C library). The linker also still handles ELF objects, so I call this monstrosity the "Macho ELF".
★ zoe@haru ~/airyx-freebsd/libexec/dyldᐳ llvm-objdump -d hello
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-accesscode - | |
-batterytestmode - rapidly cycle battery percentages for testing | |
-bigpicture - Start in Steam Big Picture mode | |
-browser-offline - | |
-cafeapplaunch - Launch apps in a cyber cafe context | |
-candidates - Show libjingle candidates for local connection as they are processed | |
-ccsyntax - Spew details about the localized strings we load | |
-cef-allow-browser-underlay - Allow webhelper to create BrowserView underlays | |
-cef-delaypageload - Enable early-out for known page loads | |
-cef-disable-breakpad - disables breakpad in crash dumps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-480p - Run tenfoot in 480p rather than 1080p | |
-720p - Run tenfoot in 720p rather than 1080p | |
-accesscode - | |
-all_languages - show longest loc string from any language | |
-batterytestmode - rapidly cycle battery percentages for testing | |
-bigpicture - Start in Steam Big Picture mode | |
-blefw - | |
-cafeapplaunch - Launch apps in a cyber cafe context | |
-candidates - Show libjingle candidates for local connection as they are processed | |
-ccsyntax - Spew details about the localized strings we load |