Skip to content

Commit

Permalink
revert cli changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wiegell committed Nov 21, 2022
1 parent 10cf671 commit 417b61b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions AstroWall/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<key>CFBundleIdentifier</key>
<string>com.astro.wall.Astro-Wall</string>
<key>CFBundleShortVersionString</key>
<string>0.0.38</string>
<string>0.0.40</string>
<key>CFBundleVersion</key>
<string>0.0.38-alpha-1-g34ab4ee</string>
<string>0.0.40-alpha-1-g10cf671</string>
<key>LSMinimumSystemVersion</key>
<string>11</string>
<key>CFBundleDevelopmentRegion</key>
Expand Down
78 changes: 39 additions & 39 deletions cli5/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,45 +49,45 @@ static void regPreRelease(UpdateManifest manifest)
string prebuildOutput = runCommand("node ./scripts/pre-build", "./AstroWall");
Console.WriteLine("Update success");

//// Build binaries
//Console.WriteLine("Building binaries...");
//runCommand("msbuild ./AstroWall.sln /property:Configuration=Release");
//Console.WriteLine("Binaries built");

//// Create pkgs
//Console.WriteLine("Creating pkg");
//string shret = runCommand("sh ./scripts/pack.sh", "./AstroWall");
//Console.WriteLine(shret);
//Console.WriteLine("PKGs created");

//// Update manifest
//Release rel = new Release()
//{
// version = newTagLong,
// ReleaseDate = DateTime.Now,
// DirectPKGurl = $"https://github.com/wiegell/AstroWall/releases/download/{newTagShort}/Astro.pkg",
// Description = "Lorem Ipsum",
// isPreRelease = true
//};
//if (manifest.PreReleases == null) manifest.PreReleases = new Release[0];
//manifest.PreReleases = (Release[])manifest.PreReleases.Append(rel).ToArray();
//writeToFile(manifest);

//// Commit manifest
//runCommand($"git add . && git commit -m \\\"Updated manifest with release {newTagLong}\\\"");

//// Push new tag to gh
//Console.WriteLine("Pushing new tag to origin");
//runCommand("git push origin --tags");

//// Upload prerelease
//Console.WriteLine("Uploading prerelease to gh");
//string uploadres = runCommand($"gh release create -p --generate-notes {newTagShort} ./AstroWall/bin/Package/Astro.pkg");
//Console.WriteLine("Upload res:\n" + uploadres);

//// Push manifest
//string gitPushReturn = runCommand("git push origin master");
//Console.WriteLine("Success: " + gitPushReturn);
// Build binaries
Console.WriteLine("Building binaries...");
runCommand("msbuild ./AstroWall.sln /property:Configuration=Release");
Console.WriteLine("Binaries built");

// Create pkgs
Console.WriteLine("Creating pkg");
string shret = runCommand("sh ./scripts/pack.sh", "./AstroWall");
Console.WriteLine(shret);
Console.WriteLine("PKGs created");

// Update manifest
Release rel = new Release()
{
version = newTagLong,
ReleaseDate = DateTime.Now,
DirectPKGurl = $"https://github.com/wiegell/AstroWall/releases/download/{newTagShort}/Astro.pkg",
Description = "Lorem Ipsum",
isPreRelease = true
};
if (manifest.PreReleases == null) manifest.PreReleases = new Release[0];
manifest.PreReleases = (Release[])manifest.PreReleases.Append(rel).ToArray();
writeToFile(manifest);

// Commit manifest
runCommand($"git add . && git commit -m \\\"Updated manifest with release {newTagLong}\\\"");

// Push new tag to gh
Console.WriteLine("Pushing new tag to origin");
runCommand("git push origin --tags");

// Upload prerelease
Console.WriteLine("Uploading prerelease to gh");
string uploadres = runCommand($"gh release create -p --generate-notes {newTagShort} ./AstroWall/bin/Package/Astro.pkg");
Console.WriteLine("Upload res:\n" + uploadres);

// Push manifest
string gitPushReturn = runCommand("git push origin master");
Console.WriteLine("Success: " + gitPushReturn);
}
else
{
Expand Down

0 comments on commit 417b61b

Please sign in to comment.