Skip to content

Commit

Permalink
Update packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
geluk committed Feb 13, 2017
1 parent 290c2ff commit 7d66a11
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pass-winmenu/build-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ param(

$PKGDIR="bin/Release-Packaged"
$ZIPDIR="bin/pass-winmenu.zip"
$INCLUDEDIR="$PKGDIR/include"
$INCLUDEDIR="$PKGDIR/lib"

if($full){
rm -recurse "$PKGDIR"
mkdir "$PKGDIR"
mkdir "$INCLUDEDIR"
}else{
if(-Not (Test-Path "$INCLUDEDIR")){
mkdir "$INCLUDEDIR"
}
if(Test-Path "$PKGDIR/pass-winmenu.exe"){
rm "$PKGDIR/pass-winmenu.exe"
}
Expand All @@ -24,11 +20,11 @@ if($full){
}
}

cp -recurse "bin/Release/lib" "$PKGDIR/lib"
cp "bin/Release/pass-winmenu.exe" "$PKGDIR/pass-winmenu.exe"
cp "include/packaged-config.yaml" "$PKGDIR/pass-winmenu.yaml"

tools/7za.exe x -aos "include/GnuPG.zip" "-o$INCLUDEDIR"
tools/7za.exe x -aos "include/PortableGit.zip" "-o$INCLUDEDIR"

if($package){
if(Test-Path "$ZIPDIR"){
Expand Down

0 comments on commit 7d66a11

Please sign in to comment.