From 6a47344b25ca0d904dd45f0000fb2b6ef0441650 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 9 Sep 2016 05:20:30 +0200 Subject: [PATCH] Firefox Beta: Use system language. --- Casks/firefox-beta-de.rb | 16 --------------- Casks/firefox-beta-en-gb.rb | 16 --------------- Casks/firefox-beta-ja.rb | 16 --------------- Casks/firefox-beta-ru.rb | 16 --------------- Casks/firefox-beta-uk.rb | 16 --------------- Casks/firefox-beta-zh-cn.rb | 16 --------------- Casks/firefox-beta.rb | 40 ++++++++++++++++++++++++++++++++++--- 7 files changed, 37 insertions(+), 99 deletions(-) delete mode 100644 Casks/firefox-beta-de.rb delete mode 100644 Casks/firefox-beta-en-gb.rb delete mode 100644 Casks/firefox-beta-ja.rb delete mode 100644 Casks/firefox-beta-ru.rb delete mode 100644 Casks/firefox-beta-uk.rb delete mode 100644 Casks/firefox-beta-zh-cn.rb diff --git a/Casks/firefox-beta-de.rb b/Casks/firefox-beta-de.rb deleted file mode 100644 index c200e86cf..000000000 --- a/Casks/firefox-beta-de.rb +++ /dev/null @@ -1,16 +0,0 @@ -cask 'firefox-beta-de' do - version '49.0b3' - sha256 'b39711ed47a65f8c78d2957017b8f66488c6c3726ec930ef71a8ac803eee631e' - - url "https://download.mozilla.org/?product=firefox-#{version}-SSL&os=osx&lang=de" - name 'Mozilla Firefox' - homepage 'https://www.mozilla.org/de/firefox/beta/' - license :mpl - - app 'Firefox.app' - - zap delete: [ - '~/Library/Application Support/Firefox', - '~/Library/Caches/Firefox', - ] -end diff --git a/Casks/firefox-beta-en-gb.rb b/Casks/firefox-beta-en-gb.rb deleted file mode 100644 index d4f011efb..000000000 --- a/Casks/firefox-beta-en-gb.rb +++ /dev/null @@ -1,16 +0,0 @@ -cask 'firefox-beta-en-gb' do - version '49.0b3' - sha256 'd35d2ad4915ad2d4a6839434ea1042c473a47a61ec028704b3b116bf25abc396' - - url "https://download.mozilla.org/?product=firefox-#{version}-SSL&os=osx&lang=en-GB" - name 'Mozilla Firefox' - homepage 'https://www.mozilla.org/en-GB/firefox/beta/' - license :mpl - - app 'Firefox.app' - - zap delete: [ - '~/Library/Application Support/Firefox', - '~/Library/Caches/Firefox', - ] -end diff --git a/Casks/firefox-beta-ja.rb b/Casks/firefox-beta-ja.rb deleted file mode 100644 index 0c9945b9d..000000000 --- a/Casks/firefox-beta-ja.rb +++ /dev/null @@ -1,16 +0,0 @@ -cask 'firefox-beta-ja' do - version '49.0b3' - sha256 'e7e800f320db288fd06155209784bfa5d29edd4e9159d814707f324ef85e33a9' - - url "https://download.mozilla.org/?product=firefox-#{version}-SSL&os=osx&lang=ja-JP-mac" - name 'Mozilla Firefox' - homepage 'https://www.mozilla.org/ja/firefox/channel/' - license :mpl - - app 'Firefox.app' - - zap delete: [ - '~/Library/Application Support/Firefox', - '~/Library/Caches/Firefox', - ] -end diff --git a/Casks/firefox-beta-ru.rb b/Casks/firefox-beta-ru.rb deleted file mode 100644 index 5bcdbd658..000000000 --- a/Casks/firefox-beta-ru.rb +++ /dev/null @@ -1,16 +0,0 @@ -cask 'firefox-beta-ru' do - version '49.0b3' - sha256 '59c9b1d9e21b5577be11a064edf04aee6d3267ac31376ff59c96f3ac2d6a0550' - - url "https://download.mozilla.org/?product=firefox-#{version}-SSL&os=osx&lang=ru" - name 'Mozilla Firefox' - homepage 'https://www.mozilla.org/ru/firefox/channel/#beta' - license :mpl - - app 'Firefox.app' - - zap delete: [ - '~/Library/Application Support/Firefox', - '~/Library/Caches/Firefox', - ] -end diff --git a/Casks/firefox-beta-uk.rb b/Casks/firefox-beta-uk.rb deleted file mode 100644 index 0dd15007e..000000000 --- a/Casks/firefox-beta-uk.rb +++ /dev/null @@ -1,16 +0,0 @@ -cask 'firefox-beta-uk' do - version '49.0b3' - sha256 '72cb06a8e2e8fd66583cfa06e8a72ca9bcd54c409b4db681212f8343ff5c6601' - - url "https://download.mozilla.org/?product=firefox-#{version}-SSL&os=osx&lang=uk" - name 'Mozilla Firefox' - homepage 'https://www.mozilla.org/uk/firefox/channel/#beta' - license :mpl - - app 'Firefox.app' - - zap delete: [ - '~/Library/Application Support/Firefox', - '~/Library/Caches/Firefox', - ] -end diff --git a/Casks/firefox-beta-zh-cn.rb b/Casks/firefox-beta-zh-cn.rb deleted file mode 100644 index 0af634ba7..000000000 --- a/Casks/firefox-beta-zh-cn.rb +++ /dev/null @@ -1,16 +0,0 @@ -cask 'firefox-beta-zh-cn' do - version '49.0b1' - sha256 '821edaefe799f1760c2475bac87764bff34d1e610fbd668700797294a8914bf2' - - url "https://download.mozilla.org/?product=firefox-#{version}-SSL&os=osx&lang=zh-CN" - name 'Mozilla Firefox' - homepage 'https://www.mozilla.org/zh-CN/firefox/beta/' - license :mpl - - app 'Firefox.app' - - zap delete: [ - '~/Library/Application Support/Firefox', - '~/Library/Caches/Firefox', - ] -end diff --git a/Casks/firefox-beta.rb b/Casks/firefox-beta.rb index d405497dd..606a69360 100644 --- a/Casks/firefox-beta.rb +++ b/Casks/firefox-beta.rb @@ -1,10 +1,44 @@ cask 'firefox-beta' do version '50.0b3' - sha256 '94bfe1b01ec0a7e2a870be7f52655f4ed05fb71143c025bfa1327ac64ff53609' - url "https://download.mozilla.org/?product=firefox-#{version}-SSL&os=osx&lang=en-US" + language 'de' do + sha256 '7c28470bab9c95864b430cfb25eb2594523f8184c1c4f514cd748ad475767418' + 'de' + end + + language 'en-GB' do + sha256 'db57f6403c6d45136a11357c07da22f249b99225fc9b3b7fd9f70e6b44fe6256' + 'en-GB' + end + + language 'en', default: true do + sha256 '94bfe1b01ec0a7e2a870be7f52655f4ed05fb71143c025bfa1327ac64ff53609' + 'en-US' + end + + language 'ja' do + sha256 'f4e3595d13786b248bbe75ce09cdec2227a31eee4451649f7a9386eadb8a97f5' + 'ja-JP-mac' + end + + language 'ru' do + sha256 '53368f4204305861ba653dbd3fca2911e2d9a125f657d14565ab604e1234549a' + 'ru' + end + + language 'uk' do + sha256 '5543960eb969fe5a7f3c5bc761e1787b098e8ef40c939a964259e32c2037f010' + 'uk' + end + + language 'zh' do + sha256 'f61a688e4ac032f89e2d4f382f7beb3c2489dfea3051d8b741fc474d6188dd36' + 'zh-CN' + end + + url "https://ftp.mozilla.org/pub/firefox/releases/#{version}/mac/#{language}/Firefox%20#{version}.dmg" name 'Mozilla Firefox' - homepage 'https://www.mozilla.org/en-US/firefox/channel/#beta' + homepage 'https://www.mozilla.org/firefox/channel/#beta' license :mpl app 'Firefox.app'