Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
0.1.5: New Name
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBrokenRail committed Jan 28, 2021
1 parent 55d7481 commit 5dca321
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 33 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

**0.1.5**
* Drop The ``-R``

**0.1.4**
* Update To Reflect MCPI-Reborn Name Change

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# MCPIL-R
This is a rewrite of th original [MCPIL](https://github.com/MCPI-Devs/MCPIL) project meant to be less fragile and more compatible.
# MCPIL
This is a rewrite of the original [MCPIL](https://github.com/MCPI-Devs/MCPIL-Old) project meant to be less fragile and more compatible.

## Getting started

### Prerequisites
- Python >= 3.7.x
- [MCPI-Docker](https://gitea.thebrokenrail.com/TheBrokenRail/minecraft-pi-docker)
- [MCPI-Reborn](https://gitea.thebrokenrail.com/TheBrokenRail/minecraft-pi-reborn)

### System Requirements
Raspbian Buster/Ubuntu 18.04 Or Higher
Expand All @@ -18,18 +18,18 @@ Download and install MCPIL from the Packagecloud Debian repository:
curl -s https://packagecloud.io/install/repositories/Alvarito050506/mcpi-devs/script.deb.sh | sudo bash
# Now the actual installation
sudo apt-get install mcpil-r
sudo apt-get install mcpil
```

## Changelog
[View Changelog](CHANGELOG.md)

## Debian Packages
[GitHub Releases](https://github.com/MCPI-Devs/MCPIL-R/releases/latest)
[GitHub Releases](https://github.com/MCPI-Devs/MCPIL/releases/latest)

## Packaging
```sh
git clone --recurse-submodules https://github.com/MCPI-Devs/MCPIL-R.git
cd MCPIL-R
git clone --recurse-submodules https://github.com/MCPI-Devs/MCPIL.git
cd MCPIL
./scripts/package.sh
```
4 changes: 2 additions & 2 deletions debian/common/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: mcpil-r
Package: mcpil
Version: ${VERSION}
Maintainer: TheBrokenRail <connor24nolan@live.com>
Description: MCPI Launcher - Rebooted
Description: Minecraft Pi Launcher
Homepage: https://mcpi.tk
Architecture: all
Depends: python3, python3-tk, minecraft-pi-reborn-virgl | minecraft-pi-reborn-native
5 changes: 5 additions & 0 deletions debian/common/usr/bin/mcpil
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

exec python3 /opt/mcpil/mcpil.py
5 changes: 0 additions & 5 deletions debian/common/usr/bin/mcpil-r

This file was deleted.

10 changes: 0 additions & 10 deletions debian/common/usr/share/applications/mcpil-r.desktop

This file was deleted.

10 changes: 10 additions & 0 deletions debian/common/usr/share/applications/mcpil.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=MCPIL
Comment=Minecraft Pi Launcher
Icon=/usr/share/pixmaps/mcpil.png
StartupNotify=false
StartupWMClass=mcpil
Exec=/usr/bin/mcpil
Terminal=false
Type=Application
Categories=Application;Game;
4 changes: 2 additions & 2 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ rm -rf out
mkdir -p out

# Copy
mkdir -p debian/tmp/opt/mcpil-r
mkdir -p debian/tmp/opt/mcpil
rsync -r debian/common/ debian/tmp
rsync -r src/ debian/tmp/opt/mcpil-r
rsync -r src/ debian/tmp/opt/mcpil

# Substitute
sed -i 's/${VERSION}/'"$(cat src/VERSION)"'/g' debian/tmp/DEBIAN/control
Expand Down
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import launcher

def _get_config_path() -> str:
return str(Path.home()) + '/.mcpil-r.json'
return str(Path.home()) + '/.mcpil.json'

def _copy(src: dict, dst: dict):
for key in dst:
Expand Down
12 changes: 6 additions & 6 deletions src/mcpil-r.py → src/mcpil.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# mcpil-r.py
# mcpil.py
#
# Copyright 2020 Alvarito050506 <donfrutosgomez@gmail.com>
# Copyright 2020 StealthHydrac/StealthHydra179/a1ma
Expand Down Expand Up @@ -390,7 +390,7 @@ def multiplayer_tab(parent):
# Get Version
def get_version() -> str:
try:
with open('/opt/mcpil-r/VERSION', 'r') as file:
with open('/opt/mcpil/VERSION', 'r') as file:
return 'v' + file.readline().strip()
except OSError:
# File Does Not Exists Or Is Inaccessible
Expand All @@ -412,12 +412,12 @@ def about_tab(parent):
version.config(font=('', 10))
version.grid(row=1, sticky='NSEW')

authors = HyperLink(main_frame, 'https://github.com/MCPI-Devs/MCPIL/graphs/contributors', text='by all its contributors',
authors = HyperLink(main_frame, 'https://github.com/MCPI-Revival/MCPIL/graphs/contributors', text='by all its contributors',
fg='black')
authors.config(font=('', 10))
authors.grid(row=2, sticky='NSEW')

url = HyperLink(main_frame, 'https://github.com/MCPI-Devs/MCPIL-R')
url = HyperLink(main_frame, 'https://github.com/MCPI-Revival/MCPIL')
url.config(font=('', 10))
url.grid(row=3, sticky='NSEW')

Expand All @@ -432,8 +432,8 @@ def main():

global window

window = Tk(className='mcpil-r')
window.title('MCPI Launcher - Rebooted')
window = Tk(className='mcpil')
window.title('MCPIL')
window.geometry('512x400')
window.resizable(True, True)

Expand Down

0 comments on commit 5dca321

Please sign in to comment.