Compare commits

...

18 Commits

Author SHA1 Message Date
083b568482 breadapi: add breadapi formula 2025-09-20 09:41:00 +12:00
d729e2a1d5 things3: update to 3.21.15 2025-09-15 23:57:09 +12:00
pradyun
61b4392ff9 meta: update url for script too 2025-07-28 12:14:02 +12:00
pradyun
c45e7a688f meta: update urls to new domain 2025-07-28 11:53:31 +12:00
june
de8473d354 reeder: add 2025-04-05 12:40:42 +13:00
june
f3097c857c cleanshot-x: add 2025-03-30 09:57:55 +13:00
june
7265e7bd1a pixelsnap-2: add 2025-03-27 10:56:17 +13:00
June Setti
c0f8a01355 capture-one: add 2025-03-19 23:40:51 +13:00
june
93054b0ee8 dato: add 2025-03-18 19:18:58 +13:00
june
0b342129f3 final-cut-pro: add 2025-03-18 16:34:42 +13:00
june
87a3cf6a0e meta: remove unnecessary homepage field from script 2025-03-18 14:54:17 +13:00
june
46c5c11e93 pixelmator-pro: add 2025-03-18 14:49:50 +13:00
june
9c11138820 misakax: add 2025-03-17 23:35:32 +13:00
june
13c3d8dd1f ulyssesmac: add 2025-03-17 23:33:19 +13:00
june
734484d229 pico-8: add 2025-03-17 22:44:19 +13:00
june
cb8b4e855f meta: versioning properly is now supported 2025-03-17 22:34:52 +13:00
june
3e760d5ce3 promise-utility: init 2025-03-17 22:27:46 +13:00
june
2f77a3d364 meta: script handles spaces now 2025-03-17 22:27:18 +13:00
15 changed files with 152 additions and 15 deletions

10
Casks/capture-one.rb Normal file
View File

@@ -0,0 +1,10 @@
cask "capture-one" do
version "16.5.7.8"
sha256 "bd775dfc4ea59597a1ff1290dd8bcef11af902f968d450c89f779ac5412ccb6b"
url "https://s3.breadone.xyz/cask/Capture-One-#{version}.zip"
name "Capture One"
desc "ENTER_DESCRIPTION"
app "Capture One.app"
end

10
Casks/cleanshot-x.rb Normal file
View File

@@ -0,0 +1,10 @@
cask "cleanshot-x" do
version "4.7.5"
sha256 "e949c43788821cad46d644ce23b75c35fc2f325839eb466910adff0ce8052a79"
url "https://s3.breadone.xyz/cask/CleanShot-X-#{version}.zip"
name "CleanShot X"
desc "ENTER_DESCRIPTION"
app "CleanShot X.app"
end

10
Casks/dato.rb Normal file
View File

@@ -0,0 +1,10 @@
cask "dato" do
version "5.4.3"
sha256 "d7222ca646c4581cda412179fe4d5e9e6b5703315efbf91048ea74117f27e853"
url "https://s3.breadone.xyz/cask/Dato-#{version}.zip"
name "Dato"
desc "Menu bar date/time replacement that integrates a calendar"
app "Dato.app"
end

10
Casks/final-cut-pro.rb Normal file
View File

@@ -0,0 +1,10 @@
cask "final-cut-pro" do
version "11.0.1"
sha256 "012367fe9db6cdecaecf65621fd4ca8a4c7db1daa5998d380bcbd36ea1f5c3c7"
url "https://s3.breadone.xyz/cask/Final-Cut-Pro-#{version}.zip"
name "Final Cut Pro"
desc "Professional video production app"
app "Final Cut Pro.app"
end

11
Casks/misakax.rb Normal file
View File

@@ -0,0 +1,11 @@
cask "misakax" do
version "2.2"
sha256 "c5f6d26a468ae8846e57ae15cf1562b19261d4decdc97f680f726f0d22677f71"
url "https://s3.breadone.xyz/cask/misakaX-#{version}.zip"
name "misakaX"
desc "iOS Tweak Injector"
homepage "https://github.com/straight-tamago/misakaX"
app "misakaX.app"
end

11
Casks/pico-8.rb Normal file
View File

@@ -0,0 +1,11 @@
cask "pico-8" do
version "0.2.5g"
sha256 "a7494776163fe6065a9bdd2daf5f7c691d47f48da3441b00149ebb319f629724"
url "https://s3.breadone.xyz/cask/Pico-8-#{version}.zip"
name "Pico-8"
desc "LowFi Fantasy Game Console"
homepage "https://www.lexaloffle.com/pico-8.php"
app "Pico-8.app"
end

10
Casks/pixelmator-pro.rb Normal file
View File

@@ -0,0 +1,10 @@
cask "pixelmator-pro" do
version "3.6.17"
sha256 "e43b4e317bb0a8e42ccc995d22976d49c560c341cac4b4507fefeb6aa50d0910"
url "https://s3.breadone.xyz/cask/Pixelmator-Pro-#{version}.zip"
name "Pixelmator Pro"
desc "Professional Image Editing app"
app "Pixelmator Pro.app"
end

11
Casks/pixelsnap-2.rb Normal file
View File

@@ -0,0 +1,11 @@
cask "pixelsnap-2" do
version "2.6.1"
sha256 "db76efaf49cfab09287a11abfa079a53d008e97a02df47bfd291dd6fb64677b8"
url "https://s3.breadone.xyz/cask/PixelSnap-2-#{version}.zip"
name "PixelSnap 2"
desc "Pixel-perfect screen measuring tool"
app "PixelSnap 2.app"
end

11
Casks/promise-utility.rb Normal file
View File

@@ -0,0 +1,11 @@
cask "promise-utility" do
version "4.06.0000.01"
sha256 "4c64abd8f434f669bb43c7a31726f64da12394cd4f5857142886bf5ba477340c"
url "https://s3.breadone.xyz/cask/Promise-Utility-4.06.0000.01.zip"
name "Promise Utility"
desc "Manage Promise Pegasus devices"
homepage "https://promise.com"
app "Promise Utility.app"
end

10
Casks/reeder.rb Normal file
View File

@@ -0,0 +1,10 @@
cask "reeder" do
version "2024.9.1"
sha256 "b1088f2d3771a6b18a1f7cf03affe9d45989fed1ae1195765959f68d36d70a44"
url "https://s3.breadone.xyz/cask/Reeder-#{version}.zip"
name "Reeder"
desc "RSS Feed Reader"
app "Reeder.app"
end

View File

@@ -2,7 +2,7 @@ cask "soh" do
version "8.0.4"
sha256 "3c9e25350d17eb8d7f2650c8fbd44572e4a9a539a42d50d949ff08a0100a5a70"
url "https://dl.breadone.xyz/cask/soh-8.0.4.zip"
url "https://s3.breadone.xyz/cask/soh-8.0.4.zip"
name "Ship of Harkinian"
desc "Recompilation of The Legend of Zelda: Ocarina of Time for modern platforms"
homepage "https://www.shipofharkinian.com/"

View File

@@ -1,8 +1,8 @@
cask "things3" do
version "3.21.5"
sha256 "ed5e70de340ab4e7164fcd066a27b2766d762d888c22eba16301f431c1cebe7d"
version "3.21.15"
sha256 "63d1e411326e03f7e093bb68c5bae8691dba7baa3c41a2ad2bad66da366437f3"
url "https://dl.breadone.xyz/cask/Things3-3.21.5.zip"
url "https://s3.breadone.xyz/cask/Things3-#{version}.zip"
name "Things3"
desc "GTD Task Manager"
homepage "https://culturedcode.com/things/"

11
Casks/ulyssesmac.rb Normal file
View File

@@ -0,0 +1,11 @@
cask "ulyssesmac" do
version "36"
sha256 "59dc4c9eb10476b0b5c0c133be01e314b091eab5497b90b33cb733250fd1dc47"
url "https://s3.breadone.xyz/cask/UlyssesMac-#{version}.zip"
name "UlyssesMac"
desc "Professional Writing App"
homepage "https://ulysses.app/"
app "UlyssesMac.app"
end

20
Formula/breadapi.rb Normal file
View File

@@ -0,0 +1,20 @@
# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
class Breadapi < Formula
desc "breadnet API endpoints"
homepage ""
url "https://git.breadone.xyz/breadone/BreadAPI/archive/1.0.0.tar.gz"
sha256 "56c36235b8978c8dce9f4122fab260dfabbd07d3c34b955d9d60eb28d0252b01"
license ""
depends_on "swift"
def install
system "swift", "build", "--configuration", "release", "--disable-sandbox"
bin.install ".build/release/BreadAPI" => "breadapi"
end
test do
system bin/"breadapi", "--help"
end
end

View File

@@ -2,23 +2,24 @@
# Assign arguments to variables
APP_FILE=$1
S3_BUCKET="https://dl.breadone.xyz/cask" # prod
S3_BUCKET="https://s3.breadone.xyz/cask" # prod
# S3_BUCKET="https://dl.breadone.xyz/homebrew/casks" # staging
# get reported version of app, remove quotes, print just the version
version=$(mdls -name kMDItemVersion $APP_FILE | tr -d '"' | awk '{print $3}')
version=$(mdls -name kMDItemVersion "$APP_FILE" | tr -d '"' | awk '{print $3}')
# just the app file name, eg Things3.app
FILENAME=$(basename $APP_FILE)
FILENAME=$(basename "$APP_FILE")
# remove extension, eg Things3
APP_NAME="${FILENAME%.app}"
APPNAME="${FILENAME%.app}"
APPNAME_TRIM=$(echo $APPNAME | sed 's/^[^=]*= //; s/"//g' | tr ' ' '-') # replace spaces with dashes
# interpolate to final zip name, eg Things3-3.12.5.zip
ZIP_PATH="$APP_NAME-$version.zip"
ZIP_PATH="$APPNAME_TRIM-$version.zip"
# Compress the file
ditto -c -k --sequesterRsrc --keepParent $APP_FILE $ZIP_PATH
ditto -c -k --sequesterRsrc --keepParent "$APP_FILE" $ZIP_PATH
# Get hash of file
hash=$(sha256 $ZIP_PATH | awk '{ print $4 }')
@@ -29,14 +30,15 @@ curl -X PUT "$S3_BUCKET/$ZIP_PATH" \
--data-binary "@$ZIP_PATH"
# output (mostly complete) cask file
echo 'cask "'$(echo "$APP_NAME" | tr '[:upper:]' '[:lower:]')'" do' # lowercase appname
echo 'cask "'$(echo "$APPNAME_TRIM" | tr '[:upper:]' '[:lower:]')'" do' # lowercase appname
echo ' version "'$version'"'
echo ' sha256 "'$hash'"'
echo ''
echo ' url "'$S3_BUCKET/$ZIP_PATH'"'
echo ' name "'$APP_NAME'"'
echo ' url "'$S3_BUCKET/$APPNAME_TRIM-#{version}.zip'"'
echo ' name "'$APPNAME'"'
echo ' desc "ENTER_DESCRIPTION"'
echo ' homepage "ENTER_HOMEPAGE"'
echo ''
echo ' app "'$FILENAME'"'
echo 'end'
rm $ZIP_PATH