Skip to content

Can this be updated to work with Slack 2? #57

@dpo

Description

@dpo

On macOS, Python 3 is the default, and distutils is no longer available. I was able to patch math-with-slack.py to get around that as follows:

diff --git a/math-with-slack.py b/math-with-slack.py
index ad153fc..eced185 100644
--- a/math-with-slack.py
+++ b/math-with-slack.py
@@ -40,7 +40,8 @@ import struct
 import functools
 import hashlib
 
-from distutils.version import LooseVersion
+from looseversion import LooseVersion
 
 try:
   # Python 3

I'm not sure if that breaks the script for Python 2 users...

However, there are now two apps: "Slack" and "Slack 2". I downloaded the app from the Slack website. The math-with-slack.py script will update the first. That goes through, but there's no math support when you launch "Slack 2". If I direct the script to modify app.asar inside "Slack 2", it complains that it cannot update the app if it was installed from the App Store. But it wasn't installed from the App Store...

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions