mirror of
https://github.com/agersant/polaris
synced 2024-11-10 10:14:12 +00:00
Ship swagger files with installers
This commit is contained in:
parent
69c8c93277
commit
bf67ccfda8
3 changed files with 7 additions and 1 deletions
|
@ -34,9 +34,13 @@ Copy-Item .\docs\swagger .\release\tmp\swagger -recurse
|
|||
""
|
||||
"Creating installer"
|
||||
heat dir .\release\tmp\web\ -ag -g1 -dr AppDataPolaris -cg WebUI -sfrag -var wix.WebUIDir -out .\release\tmp\web_ui_fragment.wxs
|
||||
heat dir .\release\tmp\swagger\ -ag -g1 -dr AppDataPolaris -cg SwaggerUI -sfrag -var wix.SwaggerUIDir -out .\release\tmp\swagger_ui_fragment.wxs
|
||||
|
||||
candle -wx -ext WixUtilExtension -arch x64 -out .\release\tmp\web_ui_fragment.wixobj .\release\tmp\web_ui_fragment.wxs
|
||||
candle -wx -ext WixUtilExtension -arch x64 -out .\release\tmp\swagger_ui_fragment.wixobj .\release\tmp\swagger_ui_fragment.wxs
|
||||
candle -wx -ext WixUtilExtension -arch x64 -out .\release\tmp\installer.wixobj .\res\windows\installer\installer.wxs
|
||||
light -dWebUIDir=".\release\tmp\web" -wx -ext WixUtilExtension -ext WixUIExtension -spdb -sw1076 -sice:ICE38 -sice:ICE64 -out .\release\Polaris_$POLARIS_VERSION.msi .\release\tmp\installer.wixobj .\release\tmp\web_ui_fragment.wixobj
|
||||
|
||||
light -dWebUIDir=".\release\tmp\web" -dSwaggerUIDir=".\release\tmp\swagger" -wx -ext WixUtilExtension -ext WixUIExtension -spdb -sw1076 -sice:ICE38 -sice:ICE64 -out .\release\Polaris_$POLARIS_VERSION.msi .\release\tmp\installer.wixobj .\release\tmp\web_ui_fragment.wixobj .\release\tmp\swagger_ui_fragment.wixobj
|
||||
|
||||
"Cleaning up"
|
||||
Remove-Item -Recurse .\release\tmp
|
||||
|
|
|
@ -11,6 +11,7 @@ install: build
|
|||
install -d $(POLARIS_DATA_DIR)
|
||||
install ./target/release/polaris $(POLARIS_BIN_DIR)
|
||||
cp -r ./web $(POLARIS_DATA_DIR)
|
||||
cp -r ./swagger $(POLARIS_DATA_DIR)
|
||||
@echo "Polaris installation complete!"
|
||||
|
||||
clean:
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
<ComponentRef Id='ProgramMenuDir' />
|
||||
<ComponentRef Id='CleanupExtraData' />
|
||||
<ComponentGroupRef Id="WebUI" />
|
||||
<ComponentGroupRef Id="SwaggerUI" />
|
||||
</Feature>
|
||||
|
||||
<Icon Id='polaris.exe' SourceFile='polaris.exe' />
|
||||
|
|
Loading…
Reference in a new issue