File tree Expand file tree Collapse file tree 4 files changed +13
-57
lines changed
Expand file tree Collapse file tree 4 files changed +13
-57
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,6 @@ A simple git [credentials helper](https://git-scm.com/docs/gitcredentials) for G
1010# Features
11111 . Its way less bloated than [ Git Credential Manager] ( https://github.blog/2022-04-07-git-credential-manager-authentication-for-everyone )
12122 . 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
Original file line number Diff line number Diff line change 1+ pkgver=$( cargo run -q -- --version | rg -o ' [0-9]\.[0-9]\.[0-9]' )
2+
13echo Packaging gh-login-debian-armv7
2- packaging/debian/pack.sh armv7-unknown-linux-gnueabihf
4+ packaging/debian/pack.sh armv7-unknown-linux-gnueabihf $pkgver
35echo 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"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- pkgver=0.1.0
1+ TARGET=$1
2+ pkgver=$2
23
34pkgname=gh-login
45pkgdesc=" A simple git credentials helper for github"
56license=MIT
67url=" https://github.com/Xgames123/gh-login"
78maintianer=ldev
89
9- TARGET=$1
1010echo " os: Debain"
1111echo " target: $TARGET "
12-
12+ echo " version: $pkgver "
1313
1414CARCH=$( echo $TARGET | grep -o " ^[^-]*" )
1515builddir=/tmp
2727
2828rm -rf $fullbuilddir
2929mkdir -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
3334controlfile=$fullbuilddir /DEBIAN/control
3435echo " " > $controlfile
3536echo " Package: $pkgname " >> $controlfile
@@ -60,4 +61,4 @@ dpkg-deb --build $fullbuilddir
6061
6162# Copy to output dir
6263mkdir -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
You can’t perform that action at this time.
0 commit comments