summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-29 22:55:12 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-29 22:55:12 -0400
commitf507bd0f9cebe68fa2adf176740a0d00b3e6f884 (patch)
tree67a7653f14ad0140ec705988d1bdb836b7bb5b3d /build
parenta340c8b8ce8cf0c3b218162117cbc2e8f5acb2b8 (diff)
downloadSMAPI-f507bd0f9cebe68fa2adf176740a0d00b3e6f884.tar.gz
SMAPI-f507bd0f9cebe68fa2adf176740a0d00b3e6f884.tar.bz2
SMAPI-f507bd0f9cebe68fa2adf176740a0d00b3e6f884.zip
set SMAPI version from main build script
Diffstat (limited to 'build')
-rwxr-xr-xbuild/unix/prepare-install-package.sh21
-rw-r--r--build/windows/prepare-install-package.ps120
2 files changed, 28 insertions, 13 deletions
diff --git a/build/unix/prepare-install-package.sh b/build/unix/prepare-install-package.sh
index 9dd24b82..e9b413b4 100755
--- a/build/unix/prepare-install-package.sh
+++ b/build/unix/prepare-install-package.sh
@@ -29,6 +29,20 @@ cd "`dirname "$0"`/../.."
##########
+## Set version
+##########
+# get version number
+version="$1"
+if [ $# -eq 0 ]; then
+ echo "SMAPI release version (like '4.0.0'):"
+ read version
+fi
+
+# set version
+. ${0%/*}/set-smapi-version.sh "$version"
+
+
+##########
## Clear old build files
##########
echo "Clearing old builds..."
@@ -190,13 +204,6 @@ done
##########
## Create release zips
##########
-# get version number
-version="$1"
-if [ $# -eq 0 ]; then
- echo "SMAPI release version (like '4.0.0'):"
- read version
-fi
-
# rename folders
mv "$packagePath" "bin/SMAPI $version installer"
mv "$packageDevPath" "bin/SMAPI $version installer for developers"
diff --git a/build/windows/prepare-install-package.ps1 b/build/windows/prepare-install-package.ps1
index b6a23124..5a1e0bcc 100644
--- a/build/windows/prepare-install-package.ps1
+++ b/build/windows/prepare-install-package.ps1
@@ -12,6 +12,20 @@
. "$PSScriptRoot\lib\in-place-regex.ps1"
+
+##########
+## Set version
+##########
+# get version number
+$version = $args[0]
+if (!$version) {
+ $version = Read-Host "SMAPI release version (like '4.0.0')"
+}
+
+# set version
+. "$PSScriptRoot/set-smapi-version.ps1" "$version"
+
+
##########
## Constants
##########
@@ -197,12 +211,6 @@ foreach ($folder in $folders) {
###########
### Create release zips
###########
-# get version number
-$version = $args[0]
-if (!$version) {
- $version = Read-Host "SMAPI release version (like '4.0.0')"
-}
-
# rename folders
mv "$packagePath" "bin/SMAPI $version installer"
mv "$packageDevPath" "bin/SMAPI $version installer for developers"