Skip to content

Commit

Permalink
changed packing process and remove todo form README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ldev committed Aug 20, 2023
1 parent eb35549 commit 5226b8d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 57 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ A simple git [credentials helper](https://git-scm.com/docs/gitcredentials) for G
# Features
1. Its way less bloated than [Git Credential Manager](https://github.blog/2022-04-07-git-credential-manager-authentication-for-everyone)
2. It relays to another credential helper. So you can use standard credential helpers with GitHub
## TODO
* Make the 'https://github.com/login/device' auto open using xdg-open
* Auto copy device code to clipboard using wl-clipboard
* Support xclip
* Make an en environment variable to set the backing helper. eg GHLOGIN_BACKINGHELPER
* Support Arch Linux (AUR)
* Support Windows

# Install

Expand Down
9 changes: 7 additions & 2 deletions pack.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
pkgver=$(cargo run -q -- --version | rg -o '[0-9]\.[0-9]\.[0-9]')

echo Packaging gh-login-debian-armv7
packaging/debian/pack.sh armv7-unknown-linux-gnueabihf
packaging/debian/pack.sh armv7-unknown-linux-gnueabihf $pkgver
echo Packaging gh-login-debian-x86_64
packaging/debian/pack.sh x86_64-unknown-linux-gnu
packaging/debian/pack.sh x86_64-unknown-linux-gnu $pkgver

echo "Done"
echo "Packages at target/packaging"
43 changes: 0 additions & 43 deletions packaging/aur/gh-login/PKGBUILD

This file was deleted.

11 changes: 6 additions & 5 deletions packaging/debian/pack.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
pkgver=0.1.0
TARGET=$1
pkgver=$2

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

TARGET=$1
echo "os: Debain"
echo "target: $TARGET"

echo "version: $pkgver"

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

rm -rf $fullbuilddir
mkdir -p $fullbuilddir
cp -rf packaging/debian/gh-login $builddir
#cp -rf packaging/debian/gh-login $builddir

# Generate control file
mkdir $fullbuilddir/DEBIAN
controlfile=$fullbuilddir/DEBIAN/control
echo "" > $controlfile
echo "Package: $pkgname" >> $controlfile
Expand Down Expand Up @@ -60,4 +61,4 @@ dpkg-deb --build $fullbuilddir

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

0 comments on commit 5226b8d

Please sign in to comment.