shellscript's People
Forkers
sheila-heath paul-benton dwshore-personal roadmap-it jamesbrookslh phredman jordin23widmer cheese9kshellscript's Issues
Slack version check fails to show version 4.0
Hi @shaquir , I noticed the script was failing to capture the latest version number. I emailed slack support about this..
Hey Ian,
Thanks for reaching out, and apologies for the trouble here.
I'm sorry for the disappointing news, but https://downloads.slack-edge.com/mac_releases/releases.json will soon be removed due to a change in our updating process. Unfortunately there isn't an automatic replacement for it right now. However our Mac folks had a suggestion and I'm going to copy/paste that directly for you:
They can hit our update endpoint, that URL looks something like:
https://slack.com/desktop/update?id=<any-random-string>&platform=darwin&os_version=<their-os-version>&app_version=<their-app-version>&channel=<their-channel>
They can find an example in their browser.log. Search for a line with the text MacUpdater: Direct feed URL and copy the URL from there.
I hope this helps. If you have any further questions around this, please don't hesitate to let me know.
Kindly,
Dee
Slack version check does not work via international redirect
Hi again @shaquir. Thanks for making a speedy fix, unfortunately this doesn't work if curl is used outside the US where international language redirects are operating.
Actual result ""
Expected result "4.0.0"
https://slack.com/downloads/mac redirected to https://slack.com/intl/en-gb/downloads/mac
There's a simple fix for the code by making curl follow redirects usr/bin/curl -sL
Thanks for your efforts - this script is very useful.
InstallSlack errors
Hello! Thank you so much @shaquir for making this! It's very helpful.
I am getting the following errors when using your script, can you assist?
Script result: => Slack.app is not installed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
4 154M 4 6642k 0 0 9938k 0 0:00:15 --:--:-- 0:00:15 9.8M
15 154M 15 23.4M 0 0 13.2M 0 0:00:11 0:00:01 0:00:10 13.3M
26 154M 26 41.0M 0 0 15.4M 0 0:00:09 0:00:02 0:00:07 15.4M
38 154M 38 59.1M 0 0 14.9M 0 0:00:10 0:00:03 0:00:07 14.9M
43 154M 43 67.8M 0 0 14.2M 0 0:00:10 0:00:04 0:00:06 14.2M
53 154M 53 82.3M 0 0 14.5M 0 0:00:10 0:00:05 0:00:05 15.2M
65 154M 65 100M 0 0 15.0M 0 0:00:10 0:00:06 0:00:04 15.6M
72 154M 72 111M 0 0 14.0M 0 0:00:10 0:00:07 0:00:03 13.3M
82 154M 82 126M 0 0 14.6M 0 0:00:10 0:00:08 0:00:02 14.3M
92 154M 92 142M 0 0 14.7M 0 0:00:10 0:00:09 0:00:01 15.2M
99 154M 99 153M 0 0 14.3M 0 0:00:10 0:00:10 --:--:-- 14.1M
100 154M 100 154M 0 0 14.3M 0 0:00:10 0:00:10 --:--:-- 13.3M
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $FE4932CA
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $E822F0CA
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $3A6177CA
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
disk image (Apple_HFS : 4): verified CRC32 $14599A0C
Checksumming (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $3A6177CA
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $DD8075DC
verified CRC32 $0F269EF1
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 Apple_HFS /Volumes/Slack
Unable to find disk for Slack
=> Assimilate ownership on '/Applications/Slack.app'
I only modified your script slightly to include the universal app with this url https://slack.com/ssb/download-osx-universal for both intel and M1 Macs.
Looking forward to getting this worked out!
-Brandon
cp command does not preserve icon resources
Hi @shaquir
I found the copy command on line 53 does not copy the icon resources properly from the Slack DMG disk image. It's possible other resources are not preserved.
In my tests in macOS 10.14.6 with Slack 4.0.0, changing this command to ditto fully replicated a Finder copy and preserved the icon resources.
ditto -rsrc /Volumes/Slack*/Slack.app /Applications/Slack.app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.