瀏覽代碼

small builder bug fix

tags/v0.0.6_dev
Niro 2 年之前
父節點
當前提交
0ecdfbb21a
共有 1 個檔案被更改,包括 7 行新增2 行删除
  1. +7
    -2
      .build/make-exe.sh

+ 7
- 2
.build/make-exe.sh 查看文件

@@ -4,7 +4,8 @@ doZip=true
path="./.build"

# Windows Folder
winPATH=$path"/builds/$1-win"
winDir=$1-win
winPATH=$path"/builds/$winDir"
mkdir "$winPATH"

# Creating .exe
@@ -16,7 +17,11 @@ cp $path"/win/"* "$winPATH"

# Zip it if $doZip == "true"
if [[ $doZip == "true" ]]; then
currentPath=$( pwd )
cd "$path/builds"
name=$1"-win.zip"
zip "$path/builds/$name" -r "$winPATH"
zip "$name" -r "$winDir"
cd "$currentPath"
rm -rf "$winPATH"
fi

Loading…
取消
儲存