Skip to content

Commit

Permalink
Update screenshots, other small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rxhfcy committed Apr 8, 2024
1 parent ff4a316 commit fad84a1
Show file tree
Hide file tree
Showing 18 changed files with 276 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Asahi Linux Helper/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSPopoverDelegate, Observabl
var menuItemToView: [NSMenuItem: MenuItem] = [:]

func setStartupDiskForNextBootOnlyAndRestart() {
// FIXME: hard coded for now...
let script = """
do shell script "bless --mount \\"/Volumes/FedoraLinux\\" --setBoot --nextonly" with administrator privileges
do shell script "bless --mount \\"/Volumes/Fedora Linux\\" --setBoot --nextonly" with administrator privileges
"""
let appleScript = NSAppleScript(source: script)

Expand Down Expand Up @@ -87,7 +88,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSPopoverDelegate, Observabl
menu.addItem(item1)
menuItemToView[item1] = .restart(1)

let item2 = NSMenuItem(title: "Restart in macOS... (default)",
let item2 = NSMenuItem(title: "Restart in macOS... (Default)",
action: #selector(closeMenuAndShowPopover(_:)), keyEquivalent: "")
menu.addItem(item2)
menuItemToView[item2] = .restart(2)
Expand Down
2 changes: 1 addition & 1 deletion Asahi Linux Helper/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"RestartDialog.CancelButton" = "Cancel";

// App name in preferences window, isn't shown anywhere else in the UI
"PreferencesDialog.Title" = "Asahi Linux Helper - Preferences";
"PreferencesDialog.Title" = "Asahi Restart Helper - Preferences";

// I want to explicitly mention macOS here. I can't promise that a similar icon will also be there on Linux (the user is probably just about to restart in Linux...)
//"PreferencesDialog.AutoStartToggleLabel" = "Always show this app in the menubar when using macOS";
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ from the aforementioned system restart dialog (?)
## Download initial demo version:

Download:
[Asahi Linux Helper.app.zip](./misc/Asahi%20Linux%20Helper.app.zip)
[Asahi Restart Helper.app.zip](./misc/Asahi%20Restart%20Helper.app.zip)

- Self-signed
- UI demo only
Expand Down
Binary file removed misc/Asahi Linux Helper.app.zip
Binary file not shown.
60 changes: 60 additions & 0 deletions misc/Asahi Restart Helper.app/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>23E224</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Asahi Linux Helper</string>
<key>CFBundleExecutable</key>
<string>Asahi Linux Helper</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>CFBundleIconName</key>
<string>AppIcon</string>
<key>CFBundleIdentifier</key>
<string>org.example.Asahi-Linux-Helper-test1</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Asahi Linux Helper</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string></string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>14.4</string>
<key>DTSDKBuild</key>
<string>23E208</string>
<key>DTSDKName</key>
<string>macosx14.4</string>
<key>DTXcode</key>
<string>1530</string>
<key>DTXcodeBuild</key>
<string>15E204a</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>12.4</string>
<key>LSUIElement</key>
<true/>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
Binary file not shown.
1 change: 1 addition & 0 deletions misc/Asahi Restart Helper.app/Contents/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPL????
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions misc/Asahi Restart Helper.app/Contents/Resources/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2024 The Asahi Linux contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary file not shown.
190 changes: 190 additions & 0 deletions misc/Asahi Restart Helper.app/Contents/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>Resources/AppIcon.icns</key>
<data>
fuu2nRqs9acNr0AF4wIFfihKsOw=
</data>
<key>Resources/Assets.car</key>
<data>
yhco5DNcZNn61tDVH8yl0VYtYbg=
</data>
<key>Resources/Base.lproj/Main.storyboardc/Info.plist</key>
<data>
M1rS+Tcas1ZdM4/iibTlduTJ22M=
</data>
<key>Resources/Base.lproj/Main.storyboardc/MainMenu.nib</key>
<data>
NcNBM/w0AI6EbwLYM/YQnP6rQA8=
</data>
<key>Resources/LICENSE</key>
<data>
cVAcjTd2laAD6eUDmm65bqq8KAM=
</data>
<key>Resources/en.lproj/Localizable.strings</key>
<dict>
<key>hash</key>
<data>
leK+xkGfrYb0Zcl8gNDCesyfbiI=
</data>
<key>optional</key>
<true/>
</dict>
</dict>
<key>files2</key>
<dict>
<key>Resources/AppIcon.icns</key>
<dict>
<key>hash2</key>
<data>
wWFbyOkJb7FMrDcyCrZ8oVSwtICpv747lQwfMuWqQzs=
</data>
</dict>
<key>Resources/Assets.car</key>
<dict>
<key>hash2</key>
<data>
vco/787BiB+eNXmqAyZLsnmk/IrPqsIpANZ2igc9SFc=
</data>
</dict>
<key>Resources/Base.lproj/Main.storyboardc/Info.plist</key>
<dict>
<key>hash2</key>
<data>
6/2HagpKuzGhxFgQU55Lc/bxgR30qm5eqHSV+p9e4/4=
</data>
</dict>
<key>Resources/Base.lproj/Main.storyboardc/MainMenu.nib</key>
<dict>
<key>hash2</key>
<data>
rYDjGLwqrW311O31lazS9pAdVMcMizi7nhSCpzFuP/M=
</data>
</dict>
<key>Resources/LICENSE</key>
<dict>
<key>hash2</key>
<data>
jwRczz4OxexSlXvv2rG4SPQyvfxpkWY5PmQi2brN0AU=
</data>
</dict>
<key>Resources/en.lproj/Localizable.strings</key>
<dict>
<key>hash2</key>
<data>
Wx3DUKyvF5Wf2gvaviZXJ+eVw68by+eqjlK/l9Ek5uc=
</data>
<key>optional</key>
<true/>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
Binary file modified misc/Change_Default_Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified misc/Menu_Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified misc/Preferences_Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified misc/Restart_Dialog_Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fad84a1

Please sign in to comment.