Skip to content
Closed
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1065ab8
Add Swift interactive version with menu-driven UI
startergo Nov 29, 2025
4196525
Update createinstalliso-interactive.swift
startergo Nov 29, 2025
f807fb0
Update README-SWIFT-INTERACTIVE.md
startergo Nov 29, 2025
09c9556
Update createinstalliso-interactive.swift
startergo Nov 29, 2025
70745e2
Update CreateInstallISO-Sudo.applescript
startergo Nov 29, 2025
b411039
Update createinstalliso-interactive.swift
startergo Nov 29, 2025
fa30e99
Fix USB writer and ISO naming issues
startergo Nov 29, 2025
19be602
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
8162966
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
101d698
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
2f2ff12
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
a79e370
Address Copilot review comments
startergo Nov 30, 2025
fc6de81
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
f84925a
Update README-SWIFT-INTERACTIVE.md
startergo Nov 30, 2025
eab0149
Update createinstalliso
startergo Nov 30, 2025
284a125
Implement isDiskExternalOrRemovable function
startergo Nov 30, 2025
1e9d745
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
adecba6
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
a5dc2d0
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
3af3fca
Update README-SWIFT-INTERACTIVE.md
startergo Nov 30, 2025
e7eef6e
Update createinstalliso
startergo Nov 30, 2025
6d2d077
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
41d49ed
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
dbb1b9d
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
1a34313
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
3cc2f89
Improve ISO renaming logic with better validation
startergo Nov 30, 2025
fa97bb0
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
ddeff7a
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
fc71dc0
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
b2348e5
Update createinstalliso
startergo Nov 30, 2025
8ada055
Update createinstalliso-interactive.swift
startergo Nov 30, 2025
d241215
Remove non-functional menu options
startergo Nov 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Compiled Swift binaries
createinstalliso-interactive

# macOS application bundles
*.app

# Swift build artifacts
*.swiftmodule
*.swiftdoc
*.dSYM/

# macOS system files
.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# AppleScript compiled files (keep source)
*.scpt
48 changes: 48 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Building the Interactive Swift Version

## Quick Build

```bash
# Compile the binary
swiftc -O createinstalliso-interactive.swift -o createinstalliso-interactive

# Make executable
chmod +x createinstalliso-interactive

# Run it
./createinstalliso-interactive
```

## Create Double-Clickable App (Optional)

The repository includes `CreateInstallISO-Sudo.applescript` which creates a sudo-enabled app:

```bash
# Compile the AppleScript into an app bundle
osacompile -o "CreateInstallISO Interactive.app" CreateInstallISO-Sudo.applescript
```

This app will:
- Open Terminal automatically
- Prompt for your password with sudo
- Work with all installer types including Sierra 10.12+
- Support the new "Write ISO to USB Drive" feature (option 7)

## One-Liner

```bash
swiftc -O createinstalliso-interactive.swift -o createinstalliso-interactive && chmod +x createinstalliso-interactive && ./createinstalliso-interactive
```

## Requirements

- macOS with Swift compiler (Xcode Command Line Tools)
- Swift 5.0 or later

## Notes

- Compiled files are `.gitignore`d (not committed to repository)
- Binary size: ~123KB
- App bundle size: ~200KB

See **README-SWIFT-INTERACTIVE.md** for complete documentation.
11 changes: 11 additions & 0 deletions CreateInstallISO-Sudo.applescript
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/osascript
on run
set scriptPath to POSIX path of (path to me)
set scriptDir to do shell script "dirname " & quoted form of scriptPath
set executablePath to scriptDir & "/createinstalliso-interactive"

tell application "Terminal"
activate
do script "cd " & quoted form of scriptDir & " && sudo " & quoted form of executablePath & "; echo ''; echo 'Press any key to close this window...'; read -n 1; exit"
end tell
end run
Loading