Create MacOS instructions.md #146
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1. Install Homebrew
Open the Terminal and run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installation, add Homebrew to your PATH (if it doesn’t happen automatically). Run:
Now, check if Homebrew is installed correctly:
brew --version
2. Install Go Using Homebrew
Once Homebrew is installed, install Go with:
brew install go
After installing Go, verify it:
go version
3. Clone the Repository
Open your terminal and clone the repository:
4. Build for macOS
The repository provides a Makefile, but you can manually compile the project for macOS:
go build -o google_maps_scraper
Create a macOS application structure:
Convert the App to a GUI Application
Create a new script inside MacOS/:
nano GoogleMapsScraper.app/Contents/MacOS/start.sh
Paste this inside:
Save and exit
Now make it executable:
chmod +x GoogleMapsScraper.app/Contents/MacOS/start.sh
Add a Info.plist inside GoogleMapsScraper.app/Contents/:
5. Run the Application
open GoogleMapsScraper.app
6. Code Sign the App (Optional but Recommended)
codesign --force --deep --sign - GoogleMapsScraper.app
If you plan to distribute it, you’ll need an Apple Developer ID to properly sign it.
6. Create a .dmg Installer (Optional)
Replace /path/to/GoogleMapsScraper.app with your actual path (e.g. ~/Desktop/GoogleMapsScraper.app)
Create the .dmg
You’ll now have a file named GoogleMapsScraper.dmg in the current folder.
An example of the built .app can be seen here: https://github.com/melogabriel/google-maps-scraper/releases/tag/v1.0.0