Skip to content

Commit

Permalink
Bump 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koddr committed Jul 24, 2020
1 parent fda831b commit 3e68471
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 23 deletions.
19 changes: 16 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ run:
go run ./main.go
@echo "[OK] App is running!"

builds: build-macos build-windows
builds: build-macos build-linux build-windows
@echo "[OK] Builds for macOS and Windows complete!"

build-macos:
Expand All @@ -19,6 +19,12 @@ build-macos:
&& GOOS=darwin GOARCH=amd64 go build -o ./build/macOS/Yandex.Music\ Desktop.app/Contents/MacOS/yamusic_desktop
@echo "[OK] Build for macOS complete!"

build-linux:
rm -rf ./build/Linux/ \
&& mkdir -p ./build/Linux \
&& GOOS=linux GOARCH=amd64 go build -o ./build/Linux/yamusic_desktop
@echo "[OK] Build for Linux complete!"

build-windows:
rm -rf ./build/Windows/ \
&& mkdir -p ./build/Windows/ \
Expand All @@ -27,15 +33,22 @@ build-windows:
&& mv ./build/Windows/yamusic_desktop-windows-10-amd64.exe ./build/Windows/Yandex.Music\ Desktop.exe
@echo "[OK] Build for MS Windows 10 x64 complete!"

installers: installer-macos archive-zip-windows
@echo "[OK] Installers for macOS and Windows complete!"
installers: installer-macos archive-tar-linux archive-zip-windows
@echo "[OK] Installers for macOS, Linux and Windows complete!"

installer-macos:
rm -rf ./releases/macOS/ \
&& mkdir -p ./releases/macOS/ \
&& appdmg ./configs/macOS/appdmg.config.json ./releases/macOS/yamusic_desktop-macosx-amd64.dmg
@echo "[OK] macOS 10.11+ installer created!"

archive-tar-linux:
rm -rf ./releases/Linux/ \
&& mkdir -p ./releases/Linux/ \
&& cd ./build/Linux \
&& tar -zcvf ../../releases/Linux/yamusic_desktop.tar.gz yamusic_desktop
@echo "[OK] GNU/Linux tar archive created!"

archive-zip-windows:
rm -rf ./releases/Windows/ \
&& mkdir -p ./releases/Windows/ \
Expand Down
59 changes: 39 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<h1 align="center">🎵 Yandex.Music Desktop (un-official port of website)</h1>
<h1 align="center">🎵 Yandex.Music Desktop (port of website)</h1>

![Yandex.Music Desktop (un-official port of website)](static/GitHub/macOS_installer_screenshot.jpg)
![Yandex.Music Desktop (port of website)](static/GitHub/macOS_installer_screenshot.jpg)

<h3 align="center"><strong>Please note:</strong> this is <em>only</em> webview port of <a href="https://music.yandex.com" target="_blank">Yandex.Music</a> website as desktop app!</h3>

<br/>

### Looking for a similar desktop app for Yandex.Radio?

- 📻 Un-official [Yandex.Radio Desktop](https://github.com/koddr/yandex-radio-desktop) app
- 📻 [Yandex.Radio Desktop](https://github.com/koddr/yandex-radio-desktop) app

<br/>

Expand All @@ -26,10 +26,9 @@ Therefore, I was very upset that _Yandex.Music_ does not have a macOS (or Window

## 🔗 [Download](https://github.com/koddr/yandex-music-desktop/releases) latest version:

- [Apple macOS 10.11+ x64](https://github.com/koddr/yandex-music-desktop/releases/download/0.2.3/yamusic_desktop-macosx-amd64.dmg) (`.dmg`, 2.39 MB)
- [Microsoft Windows 10 x64](https://github.com/koddr/yandex-music-desktop/releases/download/0.2.3/yamusic_desktop-windows-10-amd64.zip) (`.zip`, 2.11 MB)

GNU/Linux → coming as soon as possible.
- [Apple macOS 10.11+ x64](https://github.com/koddr/yandex-music-desktop/releases/download/0.3.0/yamusic_desktop-macosx-amd64.dmg) (`.dmg`, 2.39 MB)
- [GNU/Linux x64](https://github.com/koddr/yandex-music-desktop/releases/download/0.3.0/yamusic_desktop-linux-10-amd64.tar.gz) (`.tar.gz`, 1.7 MB)
- [Microsoft Windows 10 x64](https://github.com/koddr/yandex-music-desktop/releases/download/0.3.0/yamusic_desktop-windows-10-amd64.zip) (`.zip`, 2.11 MB)

## ⚙️ Under the hood

Expand Down Expand Up @@ -82,64 +81,85 @@ Installation `.dmg` images for macOS was created by [node-appdmg](https://github

MS Windows 10 version available thanks to [xgo](https://github.com/karalabe/xgo) (Go CGO cross compiler by [Péter Szilágyi](https://github.com/karalabe)).

GNU/Linux version compiled and tested at Arch Linux (Manjaro 20).

### For developers

<details>
<summary>Click to view</summary><br/>

1. Clone this repository and go to folder `yandex-music-desktop`:

```console
foo@bar:~$ git clone https://github.com/koddr/yandex-music-desktop.git
foo@bar:~$ cd yandex-music-desktop
```bash
git clone https://github.com/koddr/yandex-music-desktop.git
cd yandex-music-desktop
```

2. Change anything you want 👌
3. Build app binary again for macOS (it's required `Go` 1.11+):

```console
foo@bar:~$ make build-macos # build .app for macOS
```bash
make build-macos # build .app for macOS
```

- OR for GNU/Linux:

```bash
make build-linux # build binary file for Linux
```

- OR for Windows 10:

```console
foo@bar:~$ go get github.com/karalabe/xgo # install xgo cross compiler
foo@bar:~$ make build-windows # build .exe for Windows 10
go get github.com/karalabe/xgo # install xgo cross compiler
make build-windows # build .exe for Windows 10
```

4. Go to `./build/<macOS|Windows>` folder
4. Go to `./build/<macOS|Linux|Windows>` folder

- Copy `Yandex.Music Desktop.app` to your `/Applications` folder on macOS:

```console
foo@bar:~$ sudo cp -R ./build/macOS/Yandex.Music\ Desktop.app /Applications
sudo cp -R ./build/macOS/Yandex.Music\ Desktop.app /Applications
```

- OR copy `yamusic_desktop` binary to your Linux system (`/usr/share/bin`) and create symlink to it.
- OR copy `Yandex.Music Desktop.exe` to anything you want on Windows 10 system!

#### (Optional) Create macOS installation images

- Install `node-appdmg` (required `Node.js` and `npm`):

```console
foo@bar:~$ npm install -g appdmg
npm install -g appdmg
```

- Create macOS installation image (`.dmg`):

```console
foo@bar:~$ make installer-macos # for macOS 10.11+
make installer-macos # for macOS 10.11+
```

- You can found created image into `./releases/macOS` folder.

#### (Optional) Create tar-archive for GNU/Linux

- Create tar-archive:

```console
make archive-tar-linux # for Linux
```

- You can found created TAR into `./releases/Linux` folder.

</details>

#### (Optional) Create zip-archive for Windows 10

- Create zip-archive:

```console
foo@bar:~$ make archive-zip-windows # for Windows 10
make archive-zip-windows # for Windows 10
```

- You can found created ZIP into `./releases/Windows` folder.
Expand Down Expand Up @@ -184,7 +204,6 @@ Thanks for your support! 😘 Together, we make this project better every day.

## TODO

- Add GNU/Linux (amd64) version
- Add icon for Windows 10 version
- Fix low quality rendering Cocoa/WebKit on macOS

Expand Down

0 comments on commit 3e68471

Please # to comment.