Skip to content

Commit 477de13

Browse files
committed
Fix build script (!?)
1 parent 43f1654 commit 477de13

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

bin/MakeRelease.ps1

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
param([switch]$DontUpload=$False)
22

3-
$here = $MyInvocation.MyCommand.Definition
4-
$here = split-path $here -parent
5-
$root = resolve-path (join-path $here "..")
6-
3+
# PowerShell 3 defines PSScriptRoot in scripts
4+
$root = split-path $PSScriptRoot -parent
5+
$dist = Join-Path $root "dist"
76
push-location $root
8-
remove-item ".\dist" -recurse -force
7+
8+
if(Test-Path $dist) {
9+
Write-Warning "Removing $dist\*"
10+
remove-item $dist\* -recurse -force
11+
}
912
# Ensure MANIFEST reflects all changes to file system.
10-
remove-item ".\MANIFEST" -erroraction silentlycontinue
11-
start-process "python" -argumentlist ".\setup.py","spa" -NoNewWindow -Wait
13+
remove-item ".\MANIFEST" -ErrorAction silentlycontinue
14+
15+
python (Join-Path $root .\setup.py) spa | Write-Host -fore cyan
1216

1317
(get-item ".\dist\PowerShell.sublime-package").fullname | clip.exe
18+
1419
pop-location
1520

16-
if (-not $DontUpload) {
17-
start-process "https://bitbucket.org/guillermooo/powershell/downloads"
18-
}

manifest.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
include *.sublime-*
2-
include *.tmLanguage
3-
include *.tmPreferences
1+
include Support\*.sublime-*
2+
include Support\*.tmLanguage
3+
include Support\*.tmPreferences
44
include LICENSE.txt
55

66
exclude *.sublime-project

0 commit comments

Comments
 (0)