From e53c97d27fa64c2ab233f28dc03f586471a574e7 Mon Sep 17 00:00:00 2001 From: "louis.pontoise" <> Date: Mon, 20 Jan 2020 16:58:42 +0900 Subject: [PATCH] ci: update homebrew cask for new releases --- .travis.yml | 2 ++ alt-tab-macos.xcodeproj/project.pbxproj | 4 ++++ ci/update_homebrew_cask.sh | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100755 ci/update_homebrew_cask.sh diff --git a/.travis.yml b/.travis.yml index 1884b699c..868fc4dc5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,8 @@ deploy: skip_cleanup: true on: repo: lwouis/alt-tab-macos +after_deploy: + - ci/update_homebrew_cash.sh branches: except: - "/^v\\d+\\.\\d+\\.\\d+$/" diff --git a/alt-tab-macos.xcodeproj/project.pbxproj b/alt-tab-macos.xcodeproj/project.pbxproj index f09efe9a6..eb71f7e1a 100644 --- a/alt-tab-macos.xcodeproj/project.pbxproj +++ b/alt-tab-macos.xcodeproj/project.pbxproj @@ -28,6 +28,7 @@ D04BA9119E2329DB5A35B3C7 /* ThumbnailsPanel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D04BAE5BBE182DD5DDFE2E3E /* ThumbnailsPanel.swift */; }; D04BA960DDD1D32A3019C835 /* CollectionViewCenterFlowLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = D04BA3202A2C22C347E849B3 /* CollectionViewCenterFlowLayout.swift */; }; D04BA9CCE02D30C8164A552A /* SystemPermissions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D04BA2D2AD6B1CCA3F3A4DD7 /* SystemPermissions.swift */; }; + D04BAA8009294DD2E67A8095 /* update_homebrew_cask.sh in Resources */ = {isa = PBXBuildFile; fileRef = D04BAE93A5854C501639C640 /* update_homebrew_cask.sh */; }; D04BAAD43731608067734ED3 /* DispatchQueues.swift in Sources */ = {isa = PBXBuildFile; fileRef = D04BA56E285C3FCDA52ED262 /* DispatchQueues.swift */; }; D04BAD4DE538FDF7E7532EE2 /* Labels.swift in Sources */ = {isa = PBXBuildFile; fileRef = D04BAD32E130E4A061DC8332 /* Labels.swift */; }; D04BAE2E8E9B9898A4DF9B3B /* FontIcon.swift in Sources */ = {isa = PBXBuildFile; fileRef = D04BAED53465957807CBF8B2 /* FontIcon.swift */; }; @@ -91,6 +92,7 @@ D04BAE1243C9B4BE3ED1B524 /* 7 windows - 2 lines - extra wide window.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "7 windows - 2 lines - extra wide window.jpg"; sourceTree = ""; }; D04BAE5BBE182DD5DDFE2E3E /* ThumbnailsPanel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ThumbnailsPanel.swift; sourceTree = ""; }; D04BAE80772D25834E440975 /* Window.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Window.swift; sourceTree = ""; }; + D04BAE93A5854C501639C640 /* update_homebrew_cask.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = update_homebrew_cask.sh; sourceTree = ""; }; D04BAEA3EDC4F80FA23DBEC4 /* CGWindowID.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CGWindowID.swift; sourceTree = ""; }; D04BAED53465957807CBF8B2 /* FontIcon.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FontIcon.swift; sourceTree = ""; }; D04BAF076A30A1BAFEDBEA66 /* 5 windows - 2 lines.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "5 windows - 2 lines.jpg"; sourceTree = ""; }; @@ -217,6 +219,7 @@ D04BA7ECCE728582D9ECA613 /* determine_version.sh */, D04BA4B5292629AA6B560216 /* package_release.sh */, D04BAC6AFC7F06D1A567F27A /* set_version_in_app.sh */, + D04BAE93A5854C501639C640 /* update_homebrew_cask.sh */, ); path = ci; sourceTree = ""; @@ -346,6 +349,7 @@ buildActionMask = 2147483647; files = ( D04BA8373D4DE452C0C081ED /* SF-Pro-Text-Regular.otf in Resources */, + D04BAA8009294DD2E67A8095 /* update_homebrew_cask.sh in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/ci/update_homebrew_cask.sh b/ci/update_homebrew_cask.sh new file mode 100755 index 000000000..99f32ba78 --- /dev/null +++ b/ci/update_homebrew_cask.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -ex + +version="$(cat VERSION.txt)" + +cask-repair --cask-version "$version" alt-tab