Skip to content

Commit b27607f

Browse files
committed
Add PostBuild action to restore Version.cs as empty string (so that it doesnt pollute version control with current build time stamp). #GITBUILD test
merged code from @SixParQuatre: - Add option in settings/general to use alpha release note sites and use it in Tools.OpenReleaseNotes. As 6000 version changelog don't appear on the alpha site always use GetUnityReleaseNotes in that case. - When using the alpha sites, we use it in comparison mode with the closest previous installed version. if none is found, use the same version as queried - Added an extra parameter in Tools.FindNearestVersion to find the nearest below rather than above. Default value is false to maintain existing behaviour in existing calls.
1 parent f28d954 commit b27607f

File tree

5 files changed

+373
-190
lines changed

5 files changed

+373
-190
lines changed

Diff for: UnityLauncherPro/MainWindow.xaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -790,16 +790,14 @@
790790
<CheckBox x:Name="chkQuitAfterOpen" Content="Close after opening project" Checked="ChkQuitAfterOpen_CheckedChanged" Unchecked="ChkQuitAfterOpen_CheckedChanged" ToolTip="Closes launcher after running project (not really useful)" HorizontalAlignment="Left"/>
791791
<CheckBox x:Name="chkQuitAfterCommandline" Content="Close after launching from Explorer" Unchecked="ChkQuitAfterCommandline_CheckedChanged" Checked="ChkQuitAfterCommandline_CheckedChanged" ToolTip="Close launcher after running from commandline or Explorer (recommended)" HorizontalAlignment="Left"/>
792792
<CheckBox x:Name="chkAllowSingleInstanceOnly" Content="Allow single instance only" Checked="ChkAllowSingleInstanceOnly_CheckedChanged" Unchecked="ChkAllowSingleInstanceOnly_CheckedChanged" ToolTip="Activates already running instance, instead of starting new exe (not working if app is minized to taskbar)" HorizontalAlignment="Left"/>
793+
<CheckBox x:Name="useAlphaReleaseNotesSite" Content="Use Unity Alpha Release Notes Site (Unity 6 not supported)" ToolTip="Use the superior (but alpha) Unity Release Notes (https://alpha.release-notes.ds.unity3d.com/) site when clicking on the ReleaseNotes button. Otherwise will default to the normal build page." Checked="UseAlphaReleaseNotes_Checked" Unchecked="UseAlphaReleaseNotes_Checked"/>
793794
<CheckBox x:Name="chkStreamerMode" Content="Streamer Mode (hide project names and folders)" ToolTip="Hide project names and folders in main view" Checked="ChkStreamerMode_Checked" Unchecked="ChkStreamerMode_Checked" HorizontalAlignment="Left"/>
794-
795795
<!--<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
796796
<TextBox x:Name="txtTemplatePackagesFolder" BorderBrush="Transparent" CaretBrush="{DynamicResource ThemeSearchCaret}" Background="{DynamicResource ThemeTextBoxBackground}" SelectionBrush="{DynamicResource ThemeSearchSelection}" Foreground="{DynamicResource ThemeSearchForeground}" ToolTip="Folder for your custom unitypackage templates (for new project)" Padding="0,3,0,0" Width="110" TextChanged="TxtTemplatePackagesFolder_TextChanged" />
797797
<Button Style="{StaticResource CustomButton}" x:Name="btnBrowseTemplateUnityPackagesFolder" Content="..." Margin="6,0,0,0" MinWidth="22" MinHeight="22" FontSize="16" ToolTip="Browse for new projects root folder.." Click="BtnBrowseTemplateUnityPackagesFolder_Click" />
798798
<Label Content="UnityPackage Templates Folder" Foreground="{DynamicResource ThemeButtonForeground}" />
799799
</StackPanel>-->
800800

801-
802-
803801
</StackPanel>
804802
</GroupBox>
805803

Diff for: UnityLauncherPro/MainWindow.xaml.cs

+9
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ void LoadSettings()
416416
txtRootFolderForNewProjects.Text = Properties.Settings.Default.newProjectsRoot;
417417
txtWebglRelativePath.Text = Properties.Settings.Default.webglBuildPath;
418418
txtCustomThemeFile.Text = Properties.Settings.Default.themeFile;
419+
useAlphaReleaseNotesSite.IsChecked = Properties.Settings.Default.useAlphaReleaseNotes;
419420

420421
chkEnablePlatformSelection.IsChecked = Properties.Settings.Default.enablePlatformSelection;
421422
chkRunAutomatically.IsChecked = Properties.Settings.Default.runAutomatically;
@@ -3623,6 +3624,14 @@ private void btnOpenEditorLogsFolder_PreviewMouseDown(object sender, MouseButton
36233624
}
36243625
}
36253626

3627+
private void UseAlphaReleaseNotes_Checked(object sender, RoutedEventArgs e)
3628+
{
3629+
var isChecked = (bool)((CheckBox)sender).IsChecked;
3630+
3631+
Settings.Default.useAlphaReleaseNotes = isChecked;
3632+
Settings.Default.Save();
3633+
}
3634+
36263635
//private void menuProjectProperties_Click(object sender, RoutedEventArgs e)
36273636
//{
36283637
// var proj = GetSelectedProject();

0 commit comments

Comments
 (0)