Skip to content

Commit 3658822

Browse files
committed
Initial commit
0 parents  commit 3658822

22 files changed

+539
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sh eol=lf

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea
2+
__pycache__/
3+
bin/
4+
Pipfile.lock
5+
sign_private.bat

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 TheRandomLabs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Pipfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
pyinstaller = "*"
8+
9+
[packages]
10+
massive-py = "*"
11+
pyperclip = "*"
12+
pynput = "*"
13+
14+
[requires]
15+
python_version = "3.7"

README.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# MassiveMacro
2+
3+
Massive text for Discord with the power of [massive.py](https://github.com/TheRandomLabs/massive.py).
4+
5+
## Building
6+
7+
Python 3.7 and Pipenv are required to run and build MassiveMacro.
8+
9+
Compiled executables are located in the `bin` directory.
10+
11+
### Windows
12+
13+
`build.bat` compiles an executable for Windows, and for Linux if WSL
14+
(Windows Subsystem for Linux) is installed, called `MassiveMacro.exe` and `massivemacro_linux`
15+
respectively.
16+
17+
`linux\build.bat` can be called from the root MassiveMacro directory to only compile an
18+
executable for Windows.
19+
20+
`windows\build.bat` can be called from the root MassiveMacro directory to only compile an
21+
executable for Windows.
22+
23+
`windows\pull_and_build.bat` pulls the latest version of MassiveMacro from GitHub before calling
24+
`windows\build.bat`.
25+
26+
If `signtool` from the
27+
[Windows 10 SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk)
28+
is installed, `windows\sign_private.bat` is automatically called to sign the executable.
29+
`windows\sign_private.bat` can be written like so:
30+
31+
```batch
32+
@echo off
33+
call windows\sign.bat %PFX_FILE% %PASSWORD%
34+
```
35+
36+
### Linux
37+
38+
`sh linux/build.sh` can be run from the root MassiveMacro directory to compile a Linux executable.
39+
The compiled executable is called `massivemacro_linux`.
40+
41+
`sh linux/pull_and_build.sh` can be run from the root MassiveMacro directory to pull the latest
42+
version of MassiveMacro from GitHub before running `linux/build.sh`.
43+
44+
## Mac OS X
45+
46+
`sh macos/build.sh` can be run from the root MassiveMacro directory to compile a Mac OS X
47+
executable. The script generates an executable called `massivemacro_macos`, a `.app` called
48+
`MassiveMacro.app` and an archive that contains `MassiveMacro.app` called `MassiveMacro.zip`.
49+
50+
`sh macos/pull_and_build.sh` can be run from the root MassiveMacro directory to pull the latest
51+
version of MassiveMacro from GitHub before running `macos/build.sh`.
52+
53+
## Usage
54+
55+
MassiveMacro is primarily built for Discord, but it works in other applications as well to varying
56+
degrees. Vanessa text works flawlessly on other instant messaging platforms such as Skype and Steam.
57+
58+
Precompiled binaries are available for Windows, Linux and Mac OS X.
59+
60+
### Key bindings
61+
62+
Ctrl+Enter: Plain massive (primarily regional indicators)
63+
Ctrl+Shift+Enter: Alternate massive (regional indicators mixed with alternate emojis)
64+
Alt+Shift+Enter: Vanessa (aLtErNaTe CaPs)
65+
Ctrl+Space+Enter: Massive Vanessa (combination of lowercase text and alternate massive)
66+
67+
Alternate Vanessa text will cause random words to be misspelled.
68+
69+
Multiple messages can be sent at once on Discord by typing multiple lines in the same message by
70+
pressing `Shift+Enter` then using one of the above key bindings.
71+
72+
### Linux
73+
74+
On Linux, MassiveMacro requires `xsel` to be
75+
installed:
76+
77+
$ sudo apt install xsel

build.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@echo off
2+
3+
call linux\build.bat
4+
call windows\build.bat
5+
6+
pause

linux/build.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
bash -c "sh linux/build.sh"

linux/build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
pkill massivemacro_linux
4+
5+
rm -rf build dist Pipfile.lock
6+
7+
pipenv install --dev
8+
pipenv run pyinstaller massivemacro_pyinstaller.spec
9+
10+
mkdir -p bin
11+
mv dist/massivemacro_linux bin
12+
13+
rm -rf build dist

linux/pull_and_build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
git fetch --all
4+
git reset --hard origin/master
5+
git pull
6+
7+
sh linux/build.sh

macos/build.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
pkill massivemacro
4+
pkill massivemacro_macos
5+
6+
rm -rf build dist Pipfile.lock
7+
8+
pipenv install --dev
9+
pipenv run pyinstaller massivemacro_pyinstaller.spec
10+
11+
mkdir -p bin
12+
rm -rf bin/MassiveMacro.app
13+
mv dist/massivemacro bin/massivemacro_macos
14+
mv dist/MassiveMacro.app bin
15+
rm bin/MassiveMacro.zip
16+
zip -r bin/MassiveMacro.zip bin/MassiveMacro.app/*
17+
18+
rm -rf build dist

0 commit comments

Comments
 (0)