Skip to content

Commit

Permalink
Proper About Page
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgosselin committed Sep 21, 2023
1 parent 1b20836 commit 42f2a39
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
14 changes: 12 additions & 2 deletions Audio Device Blocker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
87409FFA2ABC9B7600B450CF /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 87409FF92ABC9B7600B450CF /* Info.plist */; };
87409FFC2ABC9B8900B450CF /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 87409FFB2ABC9B8900B450CF /* Credits.rtf */; };
87570A052AB7804B0018B84D /* MyCoreAudio.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87570A042AB7804B0018B84D /* MyCoreAudio.swift */; };
87570A082AB7C9280018B84D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 87570A072AB7C9280018B84D /* CoreAudio.framework */; };
87570A0A2AB7C92F0018B84D /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 87570A092AB7C92F0018B84D /* SwiftUI.framework */; };
Expand All @@ -22,6 +24,8 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
87409FF92ABC9B7600B450CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
87409FFB2ABC9B8900B450CF /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = "<group>"; };
87570A042AB7804B0018B84D /* MyCoreAudio.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyCoreAudio.swift; sourceTree = "<group>"; };
87570A072AB7C9280018B84D /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; };
87570A092AB7C92F0018B84D /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -92,6 +96,8 @@
87F285B72AB8810E004328B5 /* PreferencesPanelView.swift */,
87F285B92AB88CE7004328B5 /* AudioContext.swift */,
87F285BD2AB89E5C004328B5 /* SavedAudioDevice.swift */,
87409FF92ABC9B7600B450CF /* Info.plist */,
87409FFB2ABC9B8900B450CF /* Credits.rtf */,
);
path = "audio-device-blocker";
sourceTree = "<group>";
Expand Down Expand Up @@ -164,6 +170,8 @@
files = (
877E23152AAD84E900D26125 /* Preview Assets.xcassets in Resources */,
877E23122AAD84E900D26125 /* Assets.xcassets in Resources */,
87409FFA2ABC9B7600B450CF /* Info.plist in Resources */,
87409FFC2ABC9B8900B450CF /* Credits.rtf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -324,10 +332,11 @@
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Audio-Device-Blocker/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Audio Device Blocker";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INFOPLIST_KEY_NSHumanReadableCopyright = "License GPL-3.0";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
Expand Down Expand Up @@ -357,10 +366,11 @@
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Audio-Device-Blocker/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "Audio Device Blocker";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INFOPLIST_KEY_NSHumanReadableCopyright = "License GPL-3.0";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
Expand Down
10 changes: 10 additions & 0 deletions audio-device-blocker/Credits.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{\rtf1\ansi\ansicpg1252\cocoartf2709
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
{\field{\*\fldinst{HYPERLINK "https://github.com/jbgosselin/audio-device-blocker"}}{\fldrslt
\f0\fs24 \cf0 Repository}}
\f0\fs24 \
}
12 changes: 12 additions & 0 deletions audio-device-blocker/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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">
<!--
Info.plist
Audio Device Blocker
Created by Jean-Baptiste Gosselin on 2023-09-21.
Copyright (c) 2023 ___ORGANIZATIONNAME___. All rights reserved.
-->
<plist version="1.0">
<dict/>
</plist>
4 changes: 3 additions & 1 deletion audio-device-blocker/MenuBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ struct MenuBarView: View {
NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: self)
}
Divider()
Link("About", destination: URL(string: "https://github.com/jbgosselin/audio-device-blocker")!)
Button("About") {
NSApplication.shared.orderFrontStandardAboutPanel(self)
}
Button("Quit") {
NSApplication.shared.terminate(self)
}
Expand Down

0 comments on commit 42f2a39

Please sign in to comment.