Skip to content

Commit d1bbe66

Browse files
committed
Switch project to PolyMC
1 parent 6ce16d9 commit d1bbe66

File tree

10 files changed

+36
-33
lines changed

10 files changed

+36
-33
lines changed

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
build/darwin/MultiMC-Curseforge.app/Contents/MacOS/MultiMC-Curseforge
2-
build/linux/usr/bin/multimc-curseforge
3-
build/windows/MultiMC-Curseforge.exe
1+
build/darwin/PolyMC-Curseforge.app/Contents/MacOS/PolyMC-Curseforge
2+
build/linux/usr/bin/polymc-curseforge
3+
build/windows/PolyMC-Curseforge.exe
44
output/

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ all: clean darwin linux windows
55

66
clean:
77
-rm -rf ./output
8-
-rm ./build/darwin/MultiMC-Curseforge.app/Contents/MacOS/MultiMC-Curseforge
9-
-rm ./build/linux/usr/bin/multimc-curseforge
8+
-rm ./build/darwin/PolyMC-Curseforge.app/Contents/MacOS/PolyMC-Curseforge
9+
-rm ./build/linux/usr/bin/polymc-curseforge
1010

1111
darwin:
1212
mkdir -p output
13-
GOOS=darwin GOARCH=amd64 $(GOCMD) build $(GOFLAGS) -o ./build/darwin/MultiMC-Curseforge.app/Contents/MacOS/MultiMC-Curseforge
13+
GOOS=darwin GOARCH=amd64 $(GOCMD) build $(GOFLAGS) -o ./build/darwin/PolyMC-Curseforge.app/Contents/MacOS/PolyMC-Curseforge
1414
tar -czvf ./output/darwin.tar.gz --exclude .gitkeep -C ./build/darwin .
1515

1616
linux:
1717
mkdir -p output
18-
GOOS=linux GOARCH=386 $(GOCMD) build $(GOFLAGS) -o ./build/linux/usr/bin/multimc-curseforge
18+
GOOS=linux GOARCH=386 $(GOCMD) build $(GOFLAGS) -o ./build/linux/usr/bin/polymc-curseforge
1919
tar -czvf ./output/linux.tar.gz --exclude .gitkeep -C ./build/linux .
2020

2121
windows:
2222
mkdir -p output
23-
GOOS=windows GOARCH=386 $(GOCMD) build $(GOFLAGS) -o ./output/MultiMC-Curseforge.exe
23+
GOOS=windows GOARCH=386 $(GOCMD) build $(GOFLAGS) -o ./output/PolyMC-Curseforge.exe

README.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
# MultiMC-Curseforge
1+
# PolyMC-Curseforge
22

33
A simple Go program that handles Curseforge's custom protocol and ccip files
44
1. Reads the [CurseForge] `.ccip` file or `curseforge://` protocol
55
2. Requests the [CurseForge] to get the zip url
6-
3. Launches [MultiMC] with the `--import` flag, with the url
6+
3. Launches [PolyMC] with the `--import` flag, with the url
77
4. Downloads the modpack icon into the icons folder
88

99
Instructions:
10-
- macOS - Move `MultiMC-Curseforge.app` into `Applications`
10+
- macOS - Move `PolyMC-Curseforge.app` into `Applications`
1111
- Linux - [AUR] or Manually install files into system
12-
- Windows - Move `MultiMC-Curseforge.exe` into `MultiMC` folder and execute as admin
12+
- Windows - Move `PolyMC-Curseforge.exe` into `PolyMC` folder and execute
1313

1414
Note: Having the Curse app installed may break this.
1515

16-
[Download](https://github.com/ShayBox/MultiMC-Curseforge/releases)
16+
[Download](https://github.com/ShayBox/PolyMC-Curseforge/releases)
17+
18+
I do not support MultiMC and its developers anymore
19+
If you would like to know more, check out [PolyMC]
1720

1821
[CurseForge]: https://www.curseforge.com/
19-
[MultiMC]: https://multimc.org/
20-
[AUR]: https://aur.archlinux.org/packages/multimc-curseforge/
22+
[PolyMC]: https://polymc.org/
23+
[AUR]: https://aur.archlinux.org/packages/Polymc-curseforge/

build/darwin/MultiMC-Curseforge.app/Contents/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleExecutable</key>
6-
<string>MultiMC-Curseforge</string>
6+
<string>PolyMC-Curseforge</string>
77
<key>CFBundleIdentifier</key>
8-
<string>com.shaybox.multimc-curseforge</string>
8+
<string>com.shaybox.polymc-curseforge</string>
99
<key>NSUIElement</key>
1010
<true/>
1111
<key>CFBundleURLTypes</key>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
22
Type=Application
3-
Name=MultiMC-Curseforge
4-
Exec=multimc-curseforge %u
3+
Name=PolyMC-Curseforge
4+
Exec=polymc-curseforge %u
55
Terminal=false
66
MimeType=x-scheme-handler/curseforge;
77
OnlyShowIn=

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module github.com/shaybox/multimc-curseforge
1+
module github.com/shaybox/polymc-curseforge
22

33
go 1.17
44

5-
require golang.org/x/sys v0.0.0-20210903071746-97244b99971b
5+
require golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
golang.org/x/sys v0.0.0-20210903071746-97244b99971b h1:3Dq0eVHn0uaQJmPO+/aYPI/fRMqdrVDbu7MQcku54gg=
2-
golang.org/x/sys v0.0.0-20210903071746-97244b99971b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
1+
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM=
2+
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

main.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,31 @@ func main() {
7070
var args []string
7171
switch runtime.GOOS {
7272
case "darwin":
73-
path = "/Applications/MultiMC.app/Contents/MacOS/icons/" + addonInfo.Name
74-
args = []string{"open", "-a", "MultiMC", "--args", "--import", pack}
73+
path = "/Applications/PolyMC.app/Contents/MacOS/icons/" + addonInfo.Name
74+
args = []string{"open", "-a", "PolyMC", "--args", "--import", pack}
7575
case "freebsd", "linux", "netbsd", "openbsd":
7676
home, err := os.UserHomeDir()
7777
if err != nil {
7878
fmt.Println(err)
7979
}
8080

81-
path = home + "/.local/share/multimc/icons/" + addonInfo.Name
82-
// Workaround for hacky MultiMC.deb package wrapper
83-
deb := "/opt/multimc/run.sh"
81+
path = home + "/.local/share/polymc/icons/" + addonInfo.Name
82+
// Workaround for hacky PolyMC.deb package wrapper
83+
deb := "/opt/polymc/run.sh"
8484
if FileExists(deb) {
8585
args = []string{deb, "--import", pack}
8686
} else {
87-
args = []string{"multimc", "--import", pack}
87+
args = []string{"polymc", "--import", pack}
8888
}
8989
case "windows":
9090
executable, err := os.Executable()
9191
if err != nil {
9292
fmt.Println(err)
9393
}
9494

95-
multimc := filepath.Dir(executable)
96-
path = multimc + "\\icons\\" + addonInfo.Name
97-
args = []string{"MultiMC.exe", "--import", pack}
95+
polymc := filepath.Dir(executable)
96+
path = polymc + "\\icons\\" + addonInfo.Name
97+
args = []string{"PolyMC.exe", "--import", pack}
9898
}
9999

100100
var attachmentURL string

main_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func UpdateRegistry() error {
6363
return err
6464
}
6565

66-
err = iconKey.SetStringValue("", dir+"\\MultiMC.exe")
66+
err = iconKey.SetStringValue("", dir+"\\PolyMC.exe")
6767
if err != nil {
6868
return err
6969
}

0 commit comments

Comments
 (0)