forked from LykosAI/StabilityMatrix
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request LykosAI#831 from ionite34/v2.12.0
v2.12.0
- Loading branch information
Showing
336 changed files
with
15,720 additions
and
3,885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
print_hyperlink() { | ||
local url="$1" | ||
local text="$2" | ||
|
||
# macOS Terminal supports clickable links in the following format | ||
printf "\033]8;;%s\a%s\033]8;;\a" "$url" "$text" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,59 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
output_dir="$(pwd)/out/osx-arm64/" | ||
app_name="Stability Matrix.app" | ||
|
||
. "./_utils.sh" > /dev/null 2>&1 || . "${BASH_SOURCE%/*}/_utils.sh" | ||
|
||
# Parse args | ||
while getopts v: flag | ||
do | ||
case "${flag}" in | ||
v) version=${OPTARG};; | ||
*) echo "Invalid option";; | ||
v) | ||
version=${OPTARG} | ||
;; | ||
*) | ||
echo "Invalid option: -$OPTARG" >&2 | ||
exit 2 | ||
;; | ||
esac | ||
done | ||
|
||
shift $((OPTIND - 1)) | ||
echo $"Passing extra args to msbuild: $@" | ||
|
||
set -e | ||
|
||
# Build the app | ||
dotnet \ | ||
msbuild \ | ||
StabilityMatrix.Avalonia \ | ||
-t:BundleApp \ | ||
-p:RuntimeIdentifier=osx-arm64 \ | ||
-p:UseAppHost=true \ | ||
-p:Configuration=Release \ | ||
-p:CFBundleShortVersionString="$version" \ | ||
-p:SelfContained=true \ | ||
-p:CFBundleName="Stability Matrix" \ | ||
-p:CFBundleDisplayName="Stability Matrix" \ | ||
-p:CFBundleVersion="$version" \ | ||
-p:PublishDir="$(pwd)/out/osx-arm64/bin" \ | ||
-p:CFBundleShortVersionString="$version" \ | ||
-p:PublishDir="${output_dir:?}/bin" \ | ||
"$@" | ||
|
||
target_plist_path="${output_dir:?}/bin/${app_name:?}/Contents/Info.plist" | ||
|
||
echo "> Checking Info.plist..." | ||
file "${target_plist_path:?}" | ||
plutil -lint "${target_plist_path:?}" | ||
|
||
echo "> Copying app to output..." | ||
# Delete existing file | ||
rm -rf "${output_dir:?}/${app_name:?}" | ||
# Copy the app out of bin | ||
cp -r ./out/osx-arm64/bin/Stability\ Matrix.app ./out/osx-arm64/Stability\ Matrix.app | ||
cp -r "${output_dir:?}/bin/${app_name:?}" "${output_dir:?}/${app_name:?}" | ||
|
||
# Print output location | ||
echo "[App Build Completed]" | ||
print_hyperlink "file:///${output_dir:?}" "${output_dir:?}" | ||
print_hyperlink "file:///${output_dir:?}/${app_name:?}" "${app_name:?}" | ||
echo "" |
Oops, something went wrong.