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

Commit d238dd5

Browse files
committed
Update sample latest.json, add helper scripts, tweak commandline app
1 parent 1c7e758 commit d238dd5

File tree

5 files changed

+17
-29
lines changed

5 files changed

+17
-29
lines changed

generate-package.sh

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#!/bin/sh -eux
1+
#!/bin/sh -eu
2+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
23
if [ $# -lt 3 ]; then
3-
echo "Usage: generate-package.sh [git|lfs] [version] [path to file] [host url (optional)] [release notes file (optional)] [message file (optional)]"
4+
echo "Usage: generate-package.sh [git|lfs|ghu] [version] [path to file] [host url (optional)] [release notes file (optional)] [message file (optional)]"
45
exit 1
56
fi
67

@@ -15,11 +16,15 @@ fi
1516

1617
if [ "$1" == "git" ]; then
1718
MD5=$GIT_MD5
18-
URL="$URL/unity/git/git.zip"
19+
URL="$URL/unity/git"
1920
fi
2021
if [ "$1" == "lfs" ]; then
2122
MD5=$LFS_MD5
22-
URL="$URL/unity/git/git-lfs.zip"
23+
URL="$URL/unity/git"
24+
fi
25+
if [ "$1" == "ghu" ]; then
26+
MD5=
27+
URL="$URL/unity/releases"
2328
fi
2429

2530
RN=""
@@ -37,8 +42,8 @@ if [ -e "/c/" ]; then
3742
EXEC=""
3843
fi
3944

40-
if [ ! -e build/CommandLine/CommandLine.exe ]; then
41-
>&2 xbuild /target:CommandLine GitHub.Unity.sln /verbosity:minimal
45+
if [ ! -e "$DIR/build/CommandLine/CommandLine.exe" ]; then
46+
>&2 xbuild /target:CommandLine "$DIR/GitHub.Unity.sln" /verbosity:minimal
4247
fi
4348

44-
"$EXEC"build/CommandLine/CommandLine.exe --gen-package --version "$2" --path "$3" --url "$URL" --md5 "$MD5" --rn "$RN" --msg "$MSG"
49+
"$EXEC""$DIR/build/CommandLine/CommandLine.exe" --gen-package --version "$2" --path "$3" --url "$URL" --md5 "$MD5" --rn "$RN" --msg "$MSG"

generate-version.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/tests/CommandLine/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static int Main(string[] args)
9191
if (generatePackage)
9292
{
9393
var md5 = path.CalculateMD5();
94+
url += "/" + path.FileName;
9495
var package = new Package
9596
{
9697
ExecutableMd5 = execMd5,
@@ -101,6 +102,7 @@ static int Main(string[] args)
101102
Url = url,
102103
Version = TheVersion.Parse(version),
103104
};
105+
104106
var json = package.ToJson(lowerCase: true, onlyPublic: false);
105107
if (outfile.IsInitialized)
106108
outfile.WriteAllText(json);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh -eu
2+
../../../../../generate-package.sh ghu 99.2.0-beta1 releases/github-for-unity-99.2.0-beta1.unitypackage http://localhost:50000 releases/releasenotes.txt releases/message.txt > latest.json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"url":"localhost:55555/unity/releases/github-for-unity-99.2.0-beta1.unitypackage","releaseNotes":null,"releaseNotesUrl":null,"message":null,"version":"99.2.0-beta1"}
1+
{"md5":"51fd1ce94af89751f57a477d0a69a694","url":"http://localhost:50000/unity/releases/github-for-unity-99.2.0-beta1.unitypackage","releaseNotes":"This release fixes a garden variety of bugs\r\n\r\n- #696 Assets view sometimes has incorrect icon overlays\r\n- #686 Users appear authenticated after exiting 2FA process early\r\n- #625 Quotation marks and other symbols in commit message or body\r\n- #684 No option to revert commits\r\n- #685 Allow sign in with email\r\n- #706 Signout functionality seems slow\r\n- #709 Plugin starts without loading git user and email\r\n\r\nThis release brings performance fixes that have been in the making for a time.\r\nIf you didn't notice, we skipped a few release numbers.\r\n\r\n## Features\r\n- #23 #191 Performance improvements that allow for commiting thousands of files\r\n- Better keyboard support in tree controls\r\n\r\n## Enhancements\r\n- #412 Create a cache management solution for user data\r\n- #385 Adding additional git commands to retrieve ahead/behind status\r\n\r\n## Fixes\r\n- #180 The HistoryView errors when displaying the bottom of the log\r\n- #421 Discrepancy in events raised by RepositoryWatcher\r\n- #451 GitHub logo disappears from the title area when entering/exiting playmode\r\n- #424 CommitFiles & CommitAllFiles does not stop the watcher first\r\n- #444 CacheUpdate events are on the main thread\r\n- #472 #494 Fixed issues causing repository remote and branch to disappear","releaseNotesUrl":null,"message":"99.2 Beta 3 update, now with moar fixes!\r\n\r\n# Important note about this update\r\n\r\nIf you have a previous version already installed, you need to delete the `Assets/Editor/GitHub` folder before installing this one. You should exit Unity and delete the folder from Explorer/Finder, as Unity will not unload native libraries while it's running.\r\n","executableMd5":"","version":"99.2.0-beta1"}

0 commit comments

Comments
 (0)