Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 005188d

Browse files
committed
makerelease improved to exclude .git, bin and obj folders
1 parent c5175c0 commit 005188d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

makerelease.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function replaceVersionInfo($version)
2323
cd 'Visual Studio Project Template C#'
2424
$filename = "NppPlugin" + $version + ".zip"
2525
write-host "# zip the projectTemplate '$filename'" -foreground green
26-
& 'C:\Program Files\7-Zip\7z.exe' a -tzip $filename *
26+
& 'C:\Program Files\7-Zip\7z.exe' a -tzip $filename * -xr!bin -xr!obj
2727

2828

2929
$vsTemplatepath = [Environment]::GetFolderPath("MyDocuments")+'\Visual Studio 2015\Templates\ProjectTemplates\Visual C#\'
@@ -35,7 +35,9 @@ copy $filename $($vsTemplatepath)
3535
write-host "# Zip template and all source files" -foreground green
3636
cd ..
3737
replaceVersionInfo($version)
38-
& 'C:\Program Files\7-Zip\7z.exe' a -tzip c:\temp\nppDemoAndProjectTemplate$($version).zip *
38+
$releaseFilename = "c:\temp\nppDemoAndProjectTemplate$($version).zip"
39+
rm $releaseFilename
40+
& 'C:\Program Files\7-Zip\7z.exe' a -tzip $releaseFilename * -xr!bin -xr!obj -xr'!.git'
3941

4042

4143
write-host "# remove temp files" -foreground green

0 commit comments

Comments
 (0)