-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CNX-9628 Add visual to installer and CI script (#74)
* feat: Add visual to installer and CI script (attempt 1) * fix(ci): Working directory set incorrectly * fix(ci): Run build before pack and set data connector path correctly * Install visual tools into dev dependencies * fix(ci): Try fix MakePQX not found * fix(ci): MakePQX args need correct subfolder * fix(visual): Rename visual to not have guid * feat(ci): Set default version to 2.0.0 everywhere, and overwrite on CI jobs * fix(ci): Missed one version location * fix(visual): Always use package.json version This allows us to `npm version` instead of doing some weirder logic * fix(visual): Allow same version when bumping
- Loading branch information
Showing
10 changed files
with
1,893 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[Version = "2.15.0-rc"] | ||
[Version = "2.0.0"] | ||
section Speckle; | ||
|
||
AuthAppId = "spklpwerbi"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,47 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" | ||
DefaultTargets="BuildMez"> | ||
<PropertyGroup> | ||
<Version Condition="'$(Version)' == ''">2.0.0-wip</Version> | ||
<OutputPath Condition="'$(OutputPath)' == ''">$(MSBuildProjectDirectory)\bin\</OutputPath> | ||
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''"> | ||
$(MSBuildProjectDirectory)\obj\</IntermediateOutputPath> | ||
<MezIntermediatePath>$(IntermediateOutputPath)MEZ\</MezIntermediatePath> | ||
<MezOutputPath>$(OutputPath)$(MsBuildProjectName).mez</MezOutputPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<MezContent Include="Speckle.pq" /> | ||
<MezContent Include="utilities\**\*.pqm" /> | ||
<MezContent Include="speckle\**\*.pqm" /> | ||
<MezContent Include="assets\SpeckleLogo16.png" /> | ||
<MezContent Include="assets\SpeckleLogo20.png" /> | ||
<MezContent Include="assets\SpeckleLogo24.png" /> | ||
<MezContent Include="assets\SpeckleLogo32.png" /> | ||
<MezContent Include="assets\SpeckleLogo40.png" /> | ||
<MezContent Include="assets\SpeckleLogo48.png" /> | ||
<MezContent Include="assets\SpeckleLogo64.png" /> | ||
<MezContent Include="assets\SpeckleLogo80.png" /> | ||
<MezContent Include="assets\resources.resx" /> | ||
</ItemGroup> | ||
<Target Name="BuildMez" AfterTargets="Build" Inputs="@(MezContent)" Outputs="$(MezOutputPath)"> | ||
<RemoveDir Directories="$(MezIntermediatePath)" /> | ||
<Copy SourceFiles="@(MezContent)" DestinationFolder="$(MezIntermediatePath)" /> | ||
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" /> | ||
<ZipDirectory SourceDirectory="$(MezIntermediatePath)" DestinationFile="$(MezOutputPath)" | ||
Overwrite="true" /> | ||
</Target> | ||
<Target Name="CopyToConnectors" AfterTargets="BuildMez"> | ||
<Message | ||
Text="Copying .mez file to: $(UserProfile)\Documents\Power BI Desktop\Custom Connectors" | ||
Importance="High" /> | ||
<MakeDir Directories="$(UserProfile)\Documents\Power BI Desktop\Custom Connectors\" /> | ||
<Copy SourceFiles="$(MezOutputPath)" | ||
DestinationFolder="$(UserProfile)\Documents\Power BI Desktop\Custom Connectors\" /> | ||
</Target> | ||
<Target Name="Clean"> | ||
<RemoveDir Directories="$(MezIntermediatePath)" /> | ||
<Delete Files="$(MezOutputPath)" /> | ||
</Target> | ||
DefaultTargets="BuildMez"> | ||
<PropertyGroup> | ||
<Version Condition="'$(Version)' == ''">2.0.0-wip</Version> | ||
<OutputPath Condition="'$(OutputPath)' == ''">$(MSBuildProjectDirectory)\bin\</OutputPath> | ||
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''"> | ||
$(MSBuildProjectDirectory)\obj\</IntermediateOutputPath> | ||
<MezIntermediatePath>$(IntermediateOutputPath)MEZ\</MezIntermediatePath> | ||
<MezOutputPath>$(OutputPath)$(MsBuildProjectName).mez</MezOutputPath> | ||
<IsContinuousIntegrationBuild>false</IsContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<MezContent Include="Speckle.pq" /> | ||
<MezContent Include="utilities\**\*.pqm" /> | ||
<MezContent Include="speckle\**\*.pqm" /> | ||
<MezContent Include="assets\SpeckleLogo16.png" /> | ||
<MezContent Include="assets\SpeckleLogo20.png" /> | ||
<MezContent Include="assets\SpeckleLogo24.png" /> | ||
<MezContent Include="assets\SpeckleLogo32.png" /> | ||
<MezContent Include="assets\SpeckleLogo40.png" /> | ||
<MezContent Include="assets\SpeckleLogo48.png" /> | ||
<MezContent Include="assets\SpeckleLogo64.png" /> | ||
<MezContent Include="assets\SpeckleLogo80.png" /> | ||
<MezContent Include="assets\resources.resx" /> | ||
</ItemGroup> | ||
<Target Name="BuildMez" AfterTargets="Build" Inputs="@(MezContent)" Outputs="$(MezOutputPath)"> | ||
<RemoveDir Directories="$(MezIntermediatePath)" /> | ||
<Copy SourceFiles="@(MezContent)" DestinationFolder="$(MezIntermediatePath)" /> | ||
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" /> | ||
<ZipDirectory SourceDirectory="$(MezIntermediatePath)" DestinationFile="$(MezOutputPath)" | ||
Overwrite="true" /> | ||
</Target> | ||
<Target Name="CopyToConnectors" AfterTargets="BuildMez" | ||
Condition="$(IsContinuousIntegrationBuild) == 'false'"> | ||
<Message | ||
Text="Copying .mez file to: $(UserProfile)\Documents\Power BI Desktop\Custom Connectors" | ||
Importance="High" /> | ||
<MakeDir Directories="$(UserProfile)\Documents\Power BI Desktop\Custom Connectors\" /> | ||
<Copy SourceFiles="$(MezOutputPath)" | ||
DestinationFolder="$(UserProfile)\Documents\Power BI Desktop\Custom Connectors\" /> | ||
</Target> | ||
<Target Name="Clean"> | ||
<RemoveDir Directories="$(MezIntermediatePath)" /> | ||
<Delete Files="$(MezOutputPath)" /> | ||
</Target> | ||
</Project> |
Oops, something went wrong.