Skip to content

Commit b1f6b5b

Browse files
committed
[WIP] Rename package to github-desktop-plus
1 parent 74f13b7 commit b1f6b5b

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "github-desktop",
2+
"name": "github-desktop-plus",
33
"desktopName": "github-desktop-plus",
44
"productName": "GitHub Desktop",
55
"bundleID": "com.github.GitHubClient",
@@ -8,7 +8,7 @@
88
"main": "./main.js",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/desktop/desktop.git"
11+
"url": "https://github.com/pol-rivero/github-desktop-plus.git"
1212
},
1313
"description": "Simple collaboration from your desktop",
1414
"author": {

app/static/linux/github

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ else
1010
GITHUB_PATH=$(dirname "$(dirname "$(dirname "$(dirname "$SYMLINK")")")")
1111
else
1212
# else use the standard install location
13-
GITHUB_PATH="/opt/GitHub Desktop"
13+
GITHUB_PATH="/opt/GitHub Desktop Plus"
1414
fi
1515
fi
1616
# check if this is a dev install or standard
17-
if [ -f "$GITHUB_PATH/github-desktop-dev" ]; then
18-
BINARY_NAME="github-desktop-dev"
17+
if [ -f "$GITHUB_PATH/github-desktop-plus-dev" ]; then
18+
BINARY_NAME="github-desktop-plus-dev"
1919
else
20-
BINARY_NAME="github-desktop"
20+
BINARY_NAME="github-desktop-plus"
2121
fi
2222

2323
ELECTRON="$GITHUB_PATH/$BINARY_NAME"

publish/aur/PKGBUILD

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ package() {
4040
tar xf data.tar.xz -C "${pkgdir}"
4141
install -d "${pkgdir}/opt/${_pkgname}"
4242

43-
mv "${pkgdir}/usr/lib/github-desktop/"* "${pkgdir}/opt/${_pkgname}/"
44-
rmdir "${pkgdir}/usr/lib/github-desktop"
43+
mv "${pkgdir}/usr/lib/github-desktop-plus/"* "${pkgdir}/opt/${_pkgname}/"
44+
rmdir "${pkgdir}/usr/lib/github-desktop-plus"
4545
rmdir "${pkgdir}/usr/lib"
46-
mv "${pkgdir}/usr/share/doc/github-desktop" "${pkgdir}/usr/share/doc/${_pkgname}"
47-
mv "${pkgdir}/usr/share/lintian/overrides/github-desktop" "${pkgdir}/usr/share/lintian/overrides/${_pkgname}"
48-
find "${pkgdir}/usr/share/icons" -name 'github-desktop.png' -execdir mv {} "${_pkgname}.png" \;
46+
mv "${pkgdir}/usr/share/doc/github-desktop-plus" "${pkgdir}/usr/share/doc/${_pkgname}"
47+
mv "${pkgdir}/usr/share/lintian/overrides/github-desktop-plus" "${pkgdir}/usr/share/lintian/overrides/${_pkgname}"
48+
find "${pkgdir}/usr/share/icons" -name 'github-desktop-plus.png' -execdir mv {} "${_pkgname}.png" \;
4949

50-
rm "${pkgdir}/usr/share/applications/github-desktop.desktop"
50+
rm "${pkgdir}/usr/share/applications/github-desktop-plus.desktop"
5151
install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
5252

53-
ln -sf "/opt/$_pkgname/github-desktop" "${pkgdir}/usr/bin/$_pkgname"
54-
rm "${pkgdir}/usr/bin/github-desktop"
53+
ln -sf "/opt/$_pkgname/github-desktop-plus" "${pkgdir}/usr/bin/$_pkgname"
54+
rm "${pkgdir}/usr/bin/github-desktop-plus"
5555
}

script/dist-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function getExecutableName() {
2525
if (process.platform === 'win32') {
2626
return `${getWindowsIdentifierName()}${suffix}`
2727
} else if (process.platform === 'linux') {
28-
return `github-desktop${suffix}`
28+
return `github-desktop-plus${suffix}`
2929
} else {
3030
return productName
3131
}

script/package-debian.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export async function packageDebian(): Promise<string> {
9797
const installer = require('electron-installer-debian')
9898

9999
await installer(options)
100-
const installersPath = `${distRoot}/github-desktop*.deb`
100+
const installersPath = `${distRoot}/github-desktop-plus*.deb`
101101

102102
const files = await globPromise(installersPath)
103103

script/package-redhat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export async function packageRedhat(): Promise<string> {
9292
const installer = require('electron-installer-redhat')
9393

9494
await installer(options)
95-
const installersPath = `${distRoot}/github-desktop*.rpm`
95+
const installersPath = `${distRoot}/github-desktop-plus*.rpm`
9696

9797
const files = await globPromise(installersPath)
9898

script/resources/deb/postinst.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
set -e
44

5-
PROFILE_D_FILE="/etc/profile.d/github-desktop.sh"
6-
INSTALL_DIR="/usr/lib/github-desktop"
5+
PROFILE_D_FILE="/etc/profile.d/github-desktop-plus.sh"
6+
INSTALL_DIR="/usr/lib/github-desktop-plus"
77
CLI_DIR="$INSTALL_DIR/resources/app/static"
88

99
case "$1" in
1010
configure)
1111
# add executable permissions for CLI interface
1212
chmod +x "$CLI_DIR"/github || :
1313
# check if this is a dev install or standard
14-
if [ -f "$INSTALL_DIR/github-desktop-dev" ]; then
15-
BINARY_NAME="github-desktop-dev"
14+
if [ -f "$INSTALL_DIR/github-desktop-plus-dev" ]; then
15+
BINARY_NAME="github-desktop-plus-dev"
1616
else
17-
BINARY_NAME="github-desktop"
17+
BINARY_NAME="github-desktop-plus"
1818
fi
1919
# create symbolic links to /usr/bin directory
2020
ln -f -s "$INSTALL_DIR"/$BINARY_NAME /usr/bin || :

script/resources/deb/postrm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
PROFILE_D_FILE="/etc/profile.d/github-desktop.sh"
4+
PROFILE_D_FILE="/etc/profile.d/github-desktop-plus.sh"
55
BASE_FILE="/usr/bin/github"
66

77
case "$1" in
@@ -11,8 +11,8 @@ case "$1" in
1111
rm "${PROFILE_D_FILE}";
1212
# remove symbolic links in /usr/bin directory
1313
test -f ${BASE_FILE} && unlink ${BASE_FILE}
14-
test -f ${BASE_FILE}-desktop && unlink ${BASE_FILE}-desktop
15-
test -f ${BASE_FILE}-desktop-dev && unlink ${BASE_FILE}-desktop-dev
14+
test -f ${BASE_FILE}-desktop-plus && unlink ${BASE_FILE}-desktop-plus
15+
test -f ${BASE_FILE}-desktop-plus-dev && unlink ${BASE_FILE}-desktop-plus-dev
1616
;;
1717

1818
*)

script/resources/rpm/post.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
INSTALL_DIR="/usr/lib/github-desktop"
3+
INSTALL_DIR="/usr/lib/github-desktop-plus"
44
CLI_DIR="$INSTALL_DIR/resources/app/static"
55

66
# add executable permissions for CLI interface

0 commit comments

Comments
 (0)