Commit 583dd936 authored by 潘栩锋's avatar 潘栩锋 🚴

安装包制作

parent d2a0c34c
<#
获取程序包 $install_dir = $PSScriptRoot + "\和美安装包"
if(Test-Path $install_dir )
{
rm -Recurse -Force $install_dir
}
FLY.Thick.Blowing.UI.Fix.Client mkdir $install_dir
FLY.Thick.Blowing.UI.Fix.Server
FLY.FeedbackRenZiJia.UI.Server
复制到 追边测厚仪安装包\佛山市枫莱尔自动化技术有限公司\WINDOWS
#>
#复制 install\* 到 和美安装包
$files = ("佛山市枫莱尔自动化技术有限公司", "FLY.Install.exe", "install_AirRing.xml")
foreach($f in $files)
{
cp -Recurse ($PSScriptRoot + "\install\"+$f) $install_dir
}
mv ($install_dir + "\install_AirRing.xml") ($install_dir + "\install.xml")
$install_dir = $install_dir+"\佛山市枫莱尔自动化技术有限公司\windows"
function copy_to($src_dir , $project_name, $other ) function copy_to($src_dir , $project_name, $other )
{ {
$install_dir = "和美安装包\佛山市枫莱尔自动化技术有限公司\WINDOWS"
$src_dir = $PSScriptRoot + "\" + $src_dir + "\" + $project_name + "\bin\Debug"; $src_dir = $PSScriptRoot + "\..\" + $src_dir
$install_dir = $PSScriptRoot + "\" + $install_dir + "\" + $project_name; $dest_dir = $install_dir + "\" + $project_name
#检测文件夹是否存在 #检测文件夹是否存在
#存在,删除全部数据,再新创建; #存在,删除全部数据,再新创建;
#不存在,创建。 #不存在,创建。
if(Test-Path $install_dir ) if(Test-Path $dest_dir )
{ {
rm -Recurse -Force $install_dir rm -Recurse -Force $dest_dir
} }
mkdir -p $install_dir mkdir -p $dest_dir
echo 复制 $project_name echo 复制 $project_name
#复制全部 xxx.dll 与 $project_name+".exe" #复制全部 xxx.dll 与 $project_name+".exe"
cp ($src_dir + "\*.dll") $dest_dir
$src = $src_dir + "\*.dll" cp ($src_dir + "\*.exe") $dest_dir
#echo $src
cp $src $install_dir
#$src = $src_dir + "\" + $project_name + ".exe"
$src = $src_dir + "\*.exe"
cp $src $install_dir
#删除 *.vshost.exe #删除 *.vshost.exe
$src = $install_dir + "\*.vshost.exe" rm ($dest_dir + "\*.vshost.exe" )
rm $src
#复制其它
foreach($f in $other) foreach($f in $other)
{ {
$src = $src_dir + "\"+$f; cp -Recurse ($src_dir + "\"+$f) $dest_dir
cp -Recurse $src $install_dir
} }
} }
copy_to "Project.FLY.Thick.Blowing" "FLY.Thick.Blowing.UI.Fix.Client" ("csysparam.xml","layout", "main_module", "music", "版本说明.txt", "测厚仪说明书.pdf") copy_to `
"Project.FLY.Thick.Blowing\FLY.Thick.Blowing.UI.Fix.Client\bin\Debug" `
"FLY.Thick.Blowing.UI.Fix.Client" `
("csysparam.xml","layout", "main_module", "music", "版本说明.txt", "测厚仪说明书.pdf")
copy_to "Project.FLY.Thick.Blowing" "FLY.Thick.Blowing.UI.Fix.Server" ("Gage1") copy_to `
"Project.FLY.Thick.Blowing\FLY.Thick.Blowing.UI.Fix.Server\bin\Debug" `
"FLY.Thick.Blowing.UI.Fix.Server" `
("Gage1")
copy_to "Project.FLY.FeedbackRenZiJia" "FLY.FeedbackRenZiJia.UI.Server" ("Gage1") copy_to `
"Project.FLY.FeedbackRenZiJia\FLY.FeedbackRenZiJia.UI.Server\bin\Debug" `
"FLY.FeedbackRenZiJia.UI.Server" `
("Gage1")
echo 复制成功 echo 复制成功
pause pause
\ No newline at end of file
<#
获取程序包 $install_dir = $PSScriptRoot + "\和美安装包"
if(Test-Path $install_dir )
{
rm -Recurse -Force $install_dir
}
mkdir $install_dir
#复制 install\* 到 和美安装包
$files = ("佛山市枫莱尔自动化技术有限公司", "FLY.Install.exe", "install_all.xml")
foreach($f in $files)
{
cp -Recurse ($PSScriptRoot + "\install\"+$f) $install_dir
}
FLY.Thick.Blowing.UI.Fix.Client mv ($install_dir + "\install_all.xml") ($install_dir + "\install.xml")
FLY.Thick.Blowing.UI.Fix.Server
FLY.FeedbackRenZiJia.UI.Server
复制到 追边测厚仪安装包\佛山市枫莱尔自动化技术有限公司\WINDOWS
#>
$install_dir = $install_dir+"\佛山市枫莱尔自动化技术有限公司\windows"
function copy_to($src_dir , $project_name, $other ) function copy_to($src_dir , $project_name, $other )
{ {
$install_dir = "和美安装包\佛山市枫莱尔自动化技术有限公司\WINDOWS"
$src_dir = $PSScriptRoot + "\" + $src_dir + "\" + $project_name + "\bin\Debug"; $src_dir = $PSScriptRoot + "\..\" + $src_dir
$install_dir = $PSScriptRoot + "\" + $install_dir + "\" + $project_name; $dest_dir = $install_dir + "\" + $project_name
#检测文件夹是否存在 #检测文件夹是否存在
#存在,删除全部数据,再新创建; #存在,删除全部数据,再新创建;
#不存在,创建。 #不存在,创建。
if(Test-Path $install_dir ) if(Test-Path $dest_dir )
{ {
rm -Recurse -Force $install_dir rm -Recurse -Force $dest_dir
} }
mkdir -p $install_dir mkdir -p $dest_dir
echo 复制 $project_name echo 复制 $project_name
#复制全部 xxx.dll 与 $project_name+".exe" #复制全部 xxx.dll 与 $project_name+".exe"
cp ($src_dir + "\*.dll") $dest_dir
$src = $src_dir + "\*.dll" cp ($src_dir + "\*.exe") $dest_dir
#echo $src
cp $src $install_dir
#$src = $src_dir + "\" + $project_name + ".exe"
$src = $src_dir + "\*.exe"
cp $src $install_dir
#删除 *.vshost.exe #删除 *.vshost.exe
$src = $install_dir + "\*.vshost.exe" rm ($dest_dir + "\*.vshost.exe" )
rm $src
#复制其它
foreach($f in $other) foreach($f in $other)
{ {
$src = $src_dir + "\"+$f; cp -Recurse ($src_dir + "\"+$f) $dest_dir
cp -Recurse $src $install_dir
} }
} }
copy_to "Project.FLY.Thick.Blowing" "FLY.Thick.Blowing.UI.Fix.Client" ("csysparam.xml","layout", "main_module", "music", "版本说明.txt", "测厚仪说明书.pdf") function copy_to2($src_dir , $project_name, $other )
{
$src_dir = $src_dir + "\" + $project_name + "\bin\Debug"
copy_to $src_dir $project_name $other
}
copy_to2 `
"Project.FLY.Thick.Blowing" `
"FLY.Thick.Blowing.UI.Fix.Client" `
("csysparam.xml","layout", "main_module", "music", "版本说明.txt", "测厚仪说明书.pdf")
copy_to2 `
"Project.FLY.Thick.Blowing" `
"FLY.Thick.Blowing.UI.Fix.Server" `
("Gage1")
copy_to "Project.FLY.Thick.Blowing" "FLY.Thick.Blowing.UI.Fix.Server" ("Gage1") copy_to2 `
"Project.FLY.FeedbackRenZiJia" `
"FLY.FeedbackRenZiJia.UI.Server" `
("Gage1")
copy_to "Project.FLY.FeedbackRenZiJia" "FLY.FeedbackRenZiJia.UI.Server" ("Gage1") copy_to2 `
"Project.FLY.IBC" `
"FLY.IBC.UI.Server" `
("Gage1")
copy_to "Project.FLY.IBC" "FLY.IBC.UI.Server" ("Gage1") copy_to2 `
"Project.FLY.Weight" `
"FLY.Weight.UI.Server" `
("Gage1")
copy_to "Project.FLY.Weight" "FLY.Weight.UI.Server" ("Gage1") copy_to2 `
"Project.FLY.Winder" `
"FLY.Winder.UI.Server" `
("Gage1")
copy_to "Project.FLY.Winder" "FLY.Winder.UI.Server" ("Gage1")
echo 复制成功 echo 复制成功
pause pause
\ No newline at end of file
<?xml version="1.0"?>
<SoftwareCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DefaultInstallPath>D:\佛山市枫莱尔自动化技术有限公司\windows</DefaultInstallPath>
<Items>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>测厚仪服务器</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.Thick.Blowing.UI.Fix.Server</Path>
<Exe>FLY.Thick.Blowing.UI.Fix.Server.exe</Exe>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>测厚仪客户端</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.Thick.Blowing.UI.Fix.Client</Path>
<Exe>FLY.Thick.Blowing.UI.Fix.Client.exe</Exe>
<Others>
<string>main_module</string>
<string>music</string>
<string>版本说明.txt</string>
<string>测厚仪说明书.pdf</string>
</Others>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>自动风环</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.FeedbackRenZiJia.UI.Server</Path>
<Exe>FLY.FeedbackRenZiJia.UI.Server.exe</Exe>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>自动上料</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.Weight.UI.Server</Path>
<Exe>FLY.Weight.UI.Server.exe</Exe>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>收卷</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.Winder.UI.Server</Path>
<Exe>FLY.Winder.UI.Server.exe</Exe>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>IBC</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.IBC.UI.Server</Path>
<Exe>FLY.IBC.UI.Server.exe</Exe>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>LP2</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\LP2</Path>
<Exe>FLY.LinkProxy.UI.Server.exe</Exe>
</SoftwareItem>
</Items>
</SoftwareCollection>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LPCoreService IsServer="False" CSAddr="server.flyautomation.net" CSDPort="20102" CSMPort="20101" Name="fly-00001" Password="4312">
<mLPServer />
</LPCoreService>
\ No newline at end of file
<?xml version="1.0"?>
<SoftwareCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DefaultInstallPath>D:\佛山市枫莱尔自动化技术有限公司\windows</DefaultInstallPath>
<Items>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>测厚仪服务器</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.Thick.Blowing.UI.Fix.Server</Path>
<Exe>FLY.Thick.Blowing.UI.Fix.Server.exe</Exe>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>测厚仪客户端</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.Thick.Blowing.UI.Fix.Client</Path>
<Exe>FLY.Thick.Blowing.UI.Fix.Client.exe</Exe>
<Others>
<string>main_module</string>
<string>music</string>
<string>版本说明.txt</string>
<string>测厚仪说明书.pdf</string>
</Others>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>自动风环</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\FLY.FeedbackRenZiJia.UI.Server</Path>
<Exe>FLY.FeedbackRenZiJia.UI.Server.exe</Exe>
</SoftwareItem>
<SoftwareItem>
<IsAutoRun>true</IsAutoRun>
<Name>LP2</Name>
<Path>佛山市枫莱尔自动化技术有限公司\windows\LP2</Path>
<Exe>FLY.LinkProxy.UI.Server.exe</Exe>
</SoftwareItem>
</Items>
</SoftwareCollection>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<SysParam ServerIPEP="127.0.0.1:20006" Language="zh" WarningTipPath="music\3742.mp3" HaveOSK="True" HaveOSK_mouse="False" />
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FixGraphParams>
<Items>
<FixGraphItemParam ID="40687096" Len="500" Interval="1000" Mix="1" IsAutoTarget="True" IsPercent="False" />
<FixGraphItemParam ID="18980006" Len="1000" Interval="10" Mix="1" IsAutoTarget="True" IsPercent="False" />
</Items>
</FixGraphParams>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FLYLayout DynAreaWidth="250" IsDynAreaVisible="True" Left="0" Top="2" Width="1366" Height="768" WindowState="Maximized">
<Items>
<GraphTabItem Header="风 环" ColumnCount="1" RowCount="4">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
<Boolean value="False" />
<Boolean value="False" />
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="14237802" Module="scangraph2" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="36721318" Module="scangraph2" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="51984031" Module="FLY.FeedbackRenZiJia.UI.Client.UIModule.UIModule_GraphFB" Row="2" Column="0" RowSpan="2" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="扫 描" ColumnCount="1" RowCount="4">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
<Boolean value="False" />
<Boolean value="False" />
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="41846616" Module="scangraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="4049537" Module="scangraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="48011444" Module="scangraph" Row="2" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="13031334" Module="scangraph" Row="3" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="环 形" ColumnCount="1" RowCount="1">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="49539123" Module="trendgraphcircular" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="2σ趋势" ColumnCount="1" RowCount="2">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="56082556" Module="trendgraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="定 点" ColumnCount="1" RowCount="2">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="40687096" Module="fixgraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="18980006" Module="fixgraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
</Items>
<ControllerStates>
<ControllerStateTabItem ControllerState="FIX" No="4" />
<ControllerStateTabItem ControllerState="SCAN" No="1" />
</ControllerStates>
<DynAreaItems>
<DynAreaComponent ID="43395070" Module="FLY.FeedbackRenZiJia.UI.Client.UIModule.UIModule_DynAreaFB" />
</DynAreaItems>
</FLYLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<ScanGraphParams IsReversed="False" LRIsVisable="False" LRIsReversed="False" XInterval="10">
<Items>
<ScanGraphItemParam ID="14237802" Title="扫描图" ChartType="Column" BM="-1" Mix="1" YRangePercent="3" IsAutoTarget="True" IsPercent="True" />
<ScanGraphItemParam ID="36721318" Title="扫描图" ChartType="Column" BM="0" Mix="1" YRangePercent="3" IsAutoTarget="True" IsPercent="True" />
<ScanGraphItemParam ID="41846616" Title="扫描图" ChartType="Column" BM="-3" Mix="1" YRangePercent="3" IsAutoTarget="True" IsPercent="True" />
<ScanGraphItemParam ID="4049537" Title="扫描图" ChartType="Column" BM="-2" Mix="1" YRangePercent="3" IsAutoTarget="True" IsPercent="True" />
<ScanGraphItemParam ID="48011444" Title="扫描图" ChartType="Column" BM="-1" Mix="1" YRangePercent="3" IsAutoTarget="True" IsPercent="True" />
<ScanGraphItemParam ID="13031334" Title="扫描图" ChartType="Column" BM="0" Mix="1" YRangePercent="3" IsAutoTarget="True" IsPercent="True" />
</Items>
</ScanGraphParams>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<ScanGraphCircularParams>
<Items>
<ScanGraphCircularParam ID="49539123" Title="环形扫描图" BM="-1" BoltNoWithManual1st="1" ManualCnt="8" MPIsRight="True" />
</Items>
</ScanGraphCircularParams>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<TrendGraphParams>
<Items>
<TrendGraphItemParam ID="56082556" Len="120" BeginNo="0" EndNo="20" IsAll="True" Type="Sigma2" XType="Time" Title="趋势图" BM="0" Mix="1" YRangePercent="3" IsAutoTarget="True" IsPercent="True" />
</Items>
</TrendGraphParams>
\ No newline at end of file
<?xml version="1.0"?>
<ArrayOfUIModuleParam xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UIModuleParam>
<dll_filename>FLY.FeedbackRenZiJia.UI.Client.dll</dll_filename>
<assembly_name>FLY.FeedbackRenZiJia.UI.Client.UIModule</assembly_name>
<class_name>UIModule_GraphFB</class_name>
<IsDynAreaComponent>false</IsDynAreaComponent>
<IsGraphCompnonent>true</IsGraphCompnonent>
<IsMenuCompnonent>false</IsMenuCompnonent>
<IsUnique>true</IsUnique>
</UIModuleParam>
<UIModuleParam>
<dll_filename>FLY.FeedbackRenZiJia.UI.Client.dll</dll_filename>
<assembly_name>FLY.FeedbackRenZiJia.UI.Client.UIModule</assembly_name>
<class_name>UIModule_DynAreaFB</class_name>
<IsDynAreaComponent>true</IsDynAreaComponent>
<IsGraphCompnonent>false</IsGraphCompnonent>
<IsMenuCompnonent>false</IsMenuCompnonent>
<IsUnique>true</IsUnique>
</UIModuleParam>
<UIModuleParam>
<dll_filename>FLY.FeedbackRenZiJia.UI.Client.dll</dll_filename>
<assembly_name>FLY.FeedbackRenZiJia.UI.Client.UIModule</assembly_name>
<class_name>UIModule_Menu</class_name>
<IsDynAreaComponent>false</IsDynAreaComponent>
<IsGraphCompnonent>false</IsGraphCompnonent>
<IsMenuCompnonent>true</IsMenuCompnonent>
<IsUnique>true</IsUnique>
</UIModuleParam>
</ArrayOfUIModuleParam>
\ No newline at end of file
<?xml version="1.0"?>
<ArrayOfModuleParam xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ModuleParam>
<dll_filename>FLY.FFT.dll</dll_filename>
<assembly_name>FLY.FFT</assembly_name>
<class_name>FFTC</class_name>
</ModuleParam>
</ArrayOfModuleParam>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LPCoreService IsServer="False" CSAddr="server.flyautomation.net" CSDPort="20102" CSMPort="20101" Name="fly-00001" Password="4312">
<mLPServer />
</LPCoreService>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment