Skip to content

Commit 3bf5656

Browse files
authored
Add Homebrew distribution via jsheffie/tap
2 parents 6871434 + a36d4dc commit 3bf5656

5 files changed

Lines changed: 28 additions & 5 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#
33
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
44

5+
*.zip
6+
57
## User settings
68
xcuserdata/
79

@@ -62,4 +64,4 @@ fastlane/Preview.html
6264
fastlane/screenshots/**/*.png
6365
fastlane/test_output
6466

65-
.claude
67+
.claude

Makefile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ BUILD_DIR = .build/release
33
APP_BUNDLE = $(APP_NAME).app
44
APP_CONTENTS = $(APP_BUNDLE)/Contents
55
INSTALL_PATH = /Applications/$(APP_BUNDLE)
6+
VERSION := $(shell cat VERSION)
7+
ARCHIVE = spacemap-$(VERSION).zip
8+
STAGE = spacemap-stage-$(VERSION)
69

7-
.PHONY: build app install run dev uninstall clean config distconfig permissions
10+
.PHONY: build app install run dev uninstall clean config distconfig permissions archive
811

912
build:
1013
swift build -c release
@@ -15,6 +18,23 @@ app: build
1518
cp $(BUILD_DIR)/$(APP_NAME) $(APP_CONTENTS)/MacOS/
1619
cp Sources/spacemap/Info.plist $(APP_CONTENTS)/
1720

21+
archive: app
22+
rm -rf $(STAGE) $(ARCHIVE)
23+
mkdir -p $(STAGE)
24+
cp -R $(APP_BUNDLE) $(STAGE)/
25+
codesign --force --deep --sign - $(STAGE)/$(APP_BUNDLE)
26+
cd $(STAGE) && zip -r --symlinks ../$(ARCHIVE) .
27+
rm -rf $(STAGE)
28+
@echo ""
29+
@echo "Artifact: $(ARCHIVE)"
30+
@echo "SHA-256: $$(shasum -a 256 $(ARCHIVE) | awk '{print $$1}')"
31+
@echo ""
32+
@echo "Next: go to https://github.com/jsheffie/spacemap/releases/new"
33+
@echo " 1. Tag: v$(VERSION)"
34+
@echo " 2. Click 'Generate release notes'"
35+
@echo " 3. Attach $(ARCHIVE)"
36+
@echo " 4. Copy the SHA-256 above into Formula/spacemap.rb in homebrew-tap"
37+
1838
install: app
1939
mkdir -p $(INSTALL_PATH)/Contents/MacOS
2040
mkdir -p $(INSTALL_PATH)/Contents/Resources

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ brew install asmvik/formulae/skhd
9595
**Step 2: Install spacemap**
9696
```
9797
brew tap jsheffie/tap
98-
brew install --cask spacemap
98+
brew install spacemap
9999
```
100100

101101
**Step 3: Configure skhd**

Sources/spacemap/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<key>CFBundleIdentifier</key>
88
<string>com.jsheffie.spacemap</string>
99
<key>CFBundleVersion</key>
10-
<string>1.0.0</string>
10+
<string>0.1.0</string>
1111
<key>CFBundleShortVersionString</key>
12-
<string>1.0.0</string>
12+
<string>0.1.0</string>
1313
<key>CFBundlePackageType</key>
1414
<string>APPL</string>
1515
<key>CFBundleExecutable</key>

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

0 commit comments

Comments
 (0)