Skip to content

Commit

Permalink
Build and sign scripts (#73)
Browse files Browse the repository at this point in the history
* test azure build script

* remove params

* add fiddler install task

* add logging

* add more debug logging

* remove compiled files

* fix build more

* Delete FSSHTTPWOPIInspector/Source/.vs/FSSHTTPandWOPIInspector/v17 directory

* more debug

* change tree

* fix another build path

* remove dead dependency

* Delete FSSHTTPWOPIInspector/Test/WOPIautomation/packages directory

* fix automation build

* add nuget restore

* fix automation build

* split build/sign pipelines

* retry copy logic

* add versioning

* Update Build.yml for Azure Pipelines

* fix copyright

* try again for year

* fix copyright

* fix indent

* fix date format

* Update Sign.yml for Azure Pipelines

* Update Sign.yml for Azure Pipelines

* add built files to artifact

* fix up publish

* fix case

* fix path

* Update Sign.yml for Azure Pipelines

* fix up github release

* add title
  • Loading branch information
stephenegriffin committed Sep 4, 2023
1 parent ed9ac96 commit 0bfd4ac
Show file tree
Hide file tree
Showing 35 changed files with 315 additions and 45,623 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@
/FSSHTTPWOPIInspector/Source/.vs/
/FSSHTTPWOPIInspector/Source/bin/
/FSSHTTPWOPIInspector/Source/obj/
/FSSHTTPWOPIInspector/Source/FSSHTTPWOPIInspector.csproj.user
/FSSHTTPWOPIInspector/Source/FSSHTTPWOPIInspector.csproj.user
/FSSHTTPWOPIInspector/Test/WOPIautomation/.vs/
/FSSHTTPWOPIInspector/Test/WOPIautomation/packages/
/FSSHTTPWOPIInspector/Test/WOPIautomation/WOPIautomation/.vs/
/FSSHTTPWOPIInspector/Test/WOPIautomation/WOPIautomation/bin/
/FSSHTTPWOPIInspector/Test/WOPIautomation/WOPIautomation/obj/
/MAPIInspector/Test/MAPIAutomationTest/.vs/
/MAPIInspector/Test/MAPIAutomationTest/MAPIAutomationTest/bin/
/MAPIInspector/Test/MAPIAutomationTest/MAPIAutomationTest/obj/
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
28 changes: 15 additions & 13 deletions FSSHTTPWOPIInspector/Source/FSSHTTPandWOPIInspector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FSSHTTPandWOPIInspector</RootNamespace>
<AssemblyName>FSSHTTPandWOPIFiddlerInspector</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
Expand All @@ -37,11 +37,18 @@
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup>
<FiddlerPath Condition="$(FiddlerPath) == '' AND Exists('$(LocalAppData)\Programs\Fiddler\Fiddler.exe')">$(LocalAppData)\Programs\Fiddler</FiddlerPath>
<FiddlerPath Condition="$(FiddlerPath) == '' AND Exists('$(ProgramFiles)\Fiddler2\Fiddler.exe')">$(ProgramFiles)\Fiddler2</FiddlerPath>
</PropertyGroup>
<Target Name="LogFiddlerPath" BeforeTargets="Build">
<Message Text="FiddlerPath: $(FiddlerPath)" Importance="High" />
</Target>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>c:\users\tomjebo\AppData\Local\Programs\Fiddler\Inspectors\</OutputPath>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down Expand Up @@ -83,10 +90,12 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Be.Windows.Forms.HexBox">
<HintPath>..\..\..\..\..\AppData\Local\Programs\Fiddler\Inspectors\Be.Windows.Forms.HexBox.dll</HintPath>
<HintPath>$(FiddlerPath)\Be.Windows.Forms.HexBox.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Fiddler">
<HintPath>..\..\..\..\..\AppData\Local\Programs\Fiddler\Fiddler.exe</HintPath>
<HintPath>$(FiddlerPath)\Fiddler.exe</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand All @@ -104,9 +113,6 @@
<Reference Include="System.Data" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Xceed.Compression.Formats.v5.4">
<HintPath>..\..\..\..\..\AppData\Local\Programs\Fiddler\Xceed.Compression.Formats.v5.4.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="FSSHTTPAndWOPIControl.cs">
Expand Down Expand Up @@ -151,16 +157,12 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>start "CopyDLLs" /B /wait start xcopy "$(SolutionDir)$(OutDir)*.*" "C:\Program Files (x86)\Fiddler2\Inspectors" /Q /Y</PostBuildEvent>
<PostBuildEvent>start "CopyDLLs" /B /wait start xcopy "$(SolutionDir)$(OutDir)*.*" "$(FiddlerPath)\Inspectors" /Q /Y</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>taskkill /im fiddler.exe /t /f 2&gt;&amp;1 | exit /B 0</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
<Error Text="Unable to find Fiddler installation" Condition="$(FiddlerPath) == ''" />
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using OpenQA.Selenium.Support;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Interactions;
using OpenQA.Selenium.Support.PageObjects;
using OpenQA.Selenium.Support.UI;
using System.Linq;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup>
<FiddlerPath Condition="$(FiddlerPath) == '' AND Exists('$(LocalAppData)\Programs\Fiddler\Fiddler.exe')">$(LocalAppData)\Programs\Fiddler</FiddlerPath>
<FiddlerPath Condition="$(FiddlerPath) == '' AND Exists('$(ProgramFiles)\Fiddler2\Fiddler.exe')">$(ProgramFiles)\Fiddler2</FiddlerPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -36,26 +42,36 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="EQATEC.Analytics.Monitor">
<HintPath>..\ExternalReference\EQATEC.Analytics.Monitor.dll</HintPath>
<Reference Include="DocumentFormat.OpenXml, Version=2.20.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17, processorArchitecture=MSIL">
<HintPath>..\packages\DocumentFormat.OpenXml.2.20.0\lib\net46\DocumentFormat.OpenXml.dll</HintPath>
</Reference>
<Reference Include="Fiddler, Version=5.0.20194.41348, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\AppData\Local\Programs\Fiddler\Fiddler.exe</HintPath>
<HintPath>$(FiddlerPath)\Fiddler.exe</HintPath>
<Private>False</Private>
<Aliases>FiddlerExe</Aliases>
</Reference>
<Reference Include="FiddlerCore">
<HintPath>..\ExternalReference\FiddlerCore.dll</HintPath>
<Aliases>FiddlerCore</Aliases>
</Reference>
<Reference Include="FSSHTTPandWOPIFiddlerInspector">
<HintPath>..\..\..\..\..\..\..\AppData\Local\Programs\Fiddler\Inspectors\FSSHTTPandWOPIFiddlerInspector.dll</HintPath>
<HintPath>$(FiddlerPath)\Inspectors\FSSHTTPandWOPIFiddlerInspector.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ionic.zip.reduced">
<HintPath>..\ExternalReference\ionic.zip.reduced.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.IdentityModel.Abstractions, Version=6.19.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.IdentityModel.Abstractions.6.19.0\lib\net461\Microsoft.IdentityModel.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.IdentityModel.Logging, Version=6.19.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.IdentityModel.Logging.6.19.0\lib\net461\Microsoft.IdentityModel.Logging.dll</HintPath>
</Reference>
<Reference Include="Microsoft.IdentityModel.Tokens, Version=6.19.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.IdentityModel.Tokens.6.19.0\lib\net461\Microsoft.IdentityModel.Tokens.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
Expand All @@ -78,12 +94,20 @@
<Reference Include="Microsoft.SharePoint.Client.Runtime">
<HintPath>..\ExternalReference\Microsoft.SharePoint.Client.Runtime.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Drawing" />
<Reference Include="System.Drawing.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Drawing.Common.7.0.0\lib\netstandard2.0\System.Drawing.Common.dll</HintPath>
</Reference>
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\System.Management.Automation.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
Expand All @@ -92,10 +116,10 @@
<Reference Include="UIAutomationClientsideProviders" />
<Reference Include="UIAutomationProvider" />
<Reference Include="UIAutomationTypes" />
<Reference Include="WebDriver">
<Reference Include="WebDriver, Version=2.52.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Selenium.WebDriver.2.52.0\lib\net40\WebDriver.dll</HintPath>
</Reference>
<Reference Include="WebDriver.Support">
<Reference Include="WebDriver.Support, Version=2.52.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Selenium.Support.2.52.0\lib\net40\WebDriver.Support.dll</HintPath>
</Reference>
<Reference Include="WindowsBase" />
Expand Down Expand Up @@ -137,6 +161,7 @@
<None Include="App.config">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DocumentFormat.OpenXml" version="2.20.0" targetFramework="net461" />
<package id="Microsoft.IdentityModel.Abstractions" version="6.19.0" targetFramework="net461" />
<package id="Microsoft.IdentityModel.Logging" version="6.19.0" targetFramework="net461" />
<package id="Microsoft.IdentityModel.Tokens" version="6.19.0" targetFramework="net461" />
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net461" />
<package id="Selenium.Support" version="2.52.0" targetFramework="net461" />
<package id="Selenium.WebDriver" version="2.52.0" targetFramework="net461" />
<package id="System.Drawing.Common" version="7.0.0" targetFramework="net461" />
</packages>
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 0bfd4ac

Please sign in to comment.