Skip to content

Commit 12ac608

Browse files
committed
Only include null encoder in debug builds
1 parent c3e02df commit 12ac608

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Source/Module/TASRecorderMenu.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ internal static void CreateSettingsMenu(TextMenu menu) {
7474
.WithCondition(NotRecordingOrLibraryEncoder),
7575
CreateFolderSelection(nameof(TASRecorderModuleSettings.OutputDirectory)),
7676
CreateSlider(nameof(TASRecorderModuleSettings.EncoderType),
77+
#if DEBUG
7778
new[] { EncoderType.FFmpegBinary, EncoderType.FFmpegLibrary, EncoderType.Null })
79+
#else
80+
new[] { EncoderType.FFmpegBinary, EncoderType.FFmpegLibrary })
81+
#endif
7882
.WithDescription("EncoderType_DESC".GetDialog())
7983
.WithCondition(NotRecording),
8084
CreateSlider(nameof(TASRecorderModuleSettings.HardwareAccelerationType),

package.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env sh
22

3-
# rm -rd bin obj
4-
dotnet build
3+
rm -rd bin Source/bin Source/obj
4+
dotnet build -c Release
55

66
if [ $# -eq 0 ]
77
then

0 commit comments

Comments
 (0)