Skip to content

Commit

Permalink
Fixes single file publish for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb9 committed Mar 22, 2021
1 parent 3075995 commit bff8710
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CameraUtility/CameraUtility.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyName>camera-utility</AssemblyName>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
<RuntimeIdentifiers>win-x64;linux-x64;osx.11.0-x64</RuntimeIdentifiers>
</PropertyGroup>

<PropertyGroup>
Expand Down
12 changes: 9 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,16 @@ test_script:
--runtime $CameraUtility_runtime --logger:AppVeyor;

after_test:
- dotnet publish --verbosity m --configuration $CONFIGURATION
--runtime $CameraUtility_runtime --output $CameraUtility_PublishFolder
- dotnet publish
--verbosity m
--configuration $CONFIGURATION
--runtime $CameraUtility_runtime
--output $CameraUtility_PublishFolder
$CameraUtility_ConsoleAppProject
/p:PublishSingleFile=true /p:PublishTrimmed=true /p:DebugType=None
/p:PublishSingleFile=true
/p:PublishTrimmed=true
/p:DebugType=None
/p:IncludeNativeLibrariesForSelfExtract=true
- 7z a $CameraUtility_ConsoleAppName-$GitVersion_FullSemVer-$CameraUtility_runtime.zip
$APPVEYOR_BUILD_FOLDER/$CameraUtility_PublishFolder/* $APPVEYOR_BUILD_FOLDER/LICENSE.txt

Expand Down

0 comments on commit bff8710

Please sign in to comment.