Skip to content

Commit 5226b8d

Browse files
committed
changed packing process and remove todo form README.md
1 parent eb35549 commit 5226b8d

File tree

4 files changed

+13
-57
lines changed

4 files changed

+13
-57
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ A simple git [credentials helper](https://git-scm.com/docs/gitcredentials) for G
1010
# Features
1111
1. Its way less bloated than [Git Credential Manager](https://github.blog/2022-04-07-git-credential-manager-authentication-for-everyone)
1212
2. It relays to another credential helper. So you can use standard credential helpers with GitHub
13-
## TODO
14-
* Make the 'https://github.com/login/device' auto open using xdg-open
15-
* Auto copy device code to clipboard using wl-clipboard
16-
* Support xclip
17-
* Make an en environment variable to set the backing helper. eg GHLOGIN_BACKINGHELPER
18-
* Support Arch Linux (AUR)
19-
* Support Windows
2013

2114
# Install
2215

pack.sh

100644100755
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
pkgver=$(cargo run -q -- --version | rg -o '[0-9]\.[0-9]\.[0-9]')
2+
13
echo Packaging gh-login-debian-armv7
2-
packaging/debian/pack.sh armv7-unknown-linux-gnueabihf
4+
packaging/debian/pack.sh armv7-unknown-linux-gnueabihf $pkgver
35
echo Packaging gh-login-debian-x86_64
4-
packaging/debian/pack.sh x86_64-unknown-linux-gnu
6+
packaging/debian/pack.sh x86_64-unknown-linux-gnu $pkgver
7+
8+
echo "Done"
9+
echo "Packages at target/packaging"

packaging/aur/gh-login/PKGBUILD

Lines changed: 0 additions & 43 deletions
This file was deleted.

packaging/debian/pack.sh

100644100755
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
pkgver=0.1.0
1+
TARGET=$1
2+
pkgver=$2
23

34
pkgname=gh-login
45
pkgdesc="A simple git credentials helper for github"
56
license=MIT
67
url="https://github.com/Xgames123/gh-login"
78
maintianer=ldev
89

9-
TARGET=$1
1010
echo "os: Debain"
1111
echo "target: $TARGET"
12-
12+
echo "version: $pkgver"
1313

1414
CARCH=$(echo $TARGET | grep -o "^[^-]*")
1515
builddir=/tmp
@@ -27,9 +27,10 @@ fi
2727

2828
rm -rf $fullbuilddir
2929
mkdir -p $fullbuilddir
30-
cp -rf packaging/debian/gh-login $builddir
30+
#cp -rf packaging/debian/gh-login $builddir
3131

3232
# Generate control file
33+
mkdir $fullbuilddir/DEBIAN
3334
controlfile=$fullbuilddir/DEBIAN/control
3435
echo "" > $controlfile
3536
echo "Package: $pkgname" >> $controlfile
@@ -60,4 +61,4 @@ dpkg-deb --build $fullbuilddir
6061

6162
# Copy to output dir
6263
mkdir -p target/packaging
63-
mv $builddir/gh-login.deb target/packaging/gh-login-debian-$CARCH.deb
64+
mv $builddir/gh-login.deb target/packaging/gh-login-debian-$CARCH.deb

0 commit comments

Comments
 (0)