Skip to content

Commit

Permalink
Merge pull request #21 from setup-your-mac/newRepo
Browse files Browse the repository at this point in the history
update for new repo location
  • Loading branch information
BIG-RAT authored Jan 10, 2024
2 parents 9295cef + 79c30dc commit 2160c70
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
4 changes: 2 additions & 2 deletions SYM-Helper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0.0;
MARKETING_VERSION = 1.0.1;
PRODUCT_BUNDLE_IDENTIFIER = "jamf.ie.SYM-Helper";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down Expand Up @@ -402,7 +402,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0.0;
MARKETING_VERSION = 1.0.1;
PRODUCT_BUNDLE_IDENTIFIER = "jamf.ie.SYM-Helper";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down
6 changes: 3 additions & 3 deletions SYM-Helper/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
<plugIn identifier="com.apple.WebKit2IBPlugin" version="22155"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
<plugIn identifier="com.apple.WebKit2IBPlugin" version="22505"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down
5 changes: 3 additions & 2 deletions SYM-Helper/Globals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ var useApiClient = 0
let alert: Alert = Alert()
let writeToLog: WriteToLog = WriteToLog()

var scriptSource = ""
var scriptSource = ""

// icon default
var defaultIcon = ""

// script defaults
var defaultScriptSource = "https://raw.githubusercontent.com/dan-snelson/Setup-Your-Mac/main/Setup-Your-Mac-via-Dialog.bash"
//old defaultScriptSource: https://raw.githubusercontent.com/dan-snelson/Setup-Your-Mac/main/Setup-Your-Mac-via-Dialog.bash
var defaultScriptSource = "https://raw.githubusercontent.com/setup-your-mac/Setup-Your-Mac/main/Setup-Your-Mac-via-Dialog.bash"

// brandng defaults
var defaultBannerImage = "https://img.freepik.com/free-vector/green-abstract-geometric-wallpaper_52683-29623.jpg"
Expand Down
3 changes: 3 additions & 0 deletions SYM-Helper/SettingsVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ class SettingsVC: NSViewController, NSTextFieldDelegate, NSTextViewDelegate, Sen
whichTab = settingsArray[0].tab
settings_TabView.selectTabViewItem(withIdentifier: whichTab)
validScriptSource = Settings.shared.dict["scriptSource"] as? String ?? defaultScriptSource

validScriptSource = validScriptSource.replacingOccurrences(of: "/dan-snelson/", with: "/setup-your-mac/")

newScriptSource = validScriptSource

scriptSource_TextField.stringValue = validScriptSource
Expand Down
21 changes: 10 additions & 11 deletions SYM-Helper/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,8 @@ class ViewController: NSViewController, NSTextFieldDelegate, URLSessionDelegate,
connectTo_Button.isHidden = false
scriptSource = defaults.string(forKey: "scriptSource") ?? defaultScriptSource

scriptSource = scriptSource.replacingOccurrences(of: "/dan-snelson/", with: "/setup-your-mac/")

// read settings, if they exist
Settings.shared.dict = ConfigsSettings().retrieve(dataType: "settings")

Expand Down Expand Up @@ -1261,8 +1263,6 @@ class ViewController: NSViewController, NSTextFieldDelegate, URLSessionDelegate,

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view.

NotificationCenter.default.addObserver(self, selector: #selector(updateScriptVersion(_:)), name: .updateScriptVersion, object: nil)

Expand All @@ -1277,14 +1277,14 @@ class ViewController: NSViewController, NSTextFieldDelegate, URLSessionDelegate,
}
}

listitemDisplayText_TextField.delegate = self
progressText_TextField.delegate = self
iconPath_TextField.delegate = self
validation_TextField.delegate = self
listitemDisplayText_TextField.delegate = self
progressText_TextField.delegate = self
iconPath_TextField.delegate = self
validation_TextField.delegate = self

allPolicies_Spinner.startAnimation(self)
policies_TableView.delegate = self
policies_TableView.dataSource = self
policies_TableView.delegate = self
policies_TableView.dataSource = self
policies_TableView.doubleAction = #selector(addToPolicyArray)

// set columg headers
Expand All @@ -1294,8 +1294,8 @@ class ViewController: NSViewController, NSTextFieldDelegate, URLSessionDelegate,
let descriptorName = NSSortDescriptor(key: "name", ascending: true)
policies_TableView.tableColumns[0].sortDescriptorPrototype = descriptorName

selectedPolicies_TableView.delegate = self
selectedPolicies_TableView.dataSource = self
selectedPolicies_TableView.delegate = self
selectedPolicies_TableView.dataSource = self
selectedPolicies_TableView.doubleAction = #selector(removeFromPolicyArray)

selectedPolicies_TableView.tableColumns.forEach { (column) in
Expand All @@ -1305,7 +1305,6 @@ class ViewController: NSViewController, NSTextFieldDelegate, URLSessionDelegate,
selectedPolicies_TableView.registerForDraggedTypes([.string])

configuration_Button.selectItem(at: 0)

}

override func viewDidAppear() {
Expand Down

0 comments on commit 2160c70

Please sign in to comment.