Commit dcc1d7d3 authored by 潘栩锋's avatar 潘栩锋 🚴

添加 江阴双亿03 安装包

parent ff3f83fe
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6D8C7B03-7908-42CE-AD04-EE51ADAEDAD5}</ProjectGuid> <ProjectGuid>{6D8C7B03-7908-42CE-AD04-EE51ADAEDAD5}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RootNamespace>FLY.Winder.BanNaiTe.UI.Server</RootNamespace> <RootNamespace>FLY.Winder.BeiJiaDe.UI.Server</RootNamespace>
<AssemblyName>FLY.Winder.BanNaiTe.UI.Server</AssemblyName> <AssemblyName>FLY.Winder.BeiJiaDe.UI.Server</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
......
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// 此代码由工具生成。 // 此代码由工具生成。
// 运行时版本: 4.0.30319.42000 // 运行时版本:4.0.30319.42000
// //
// 对此文件的更改可能导致不正确的行为,如果 // 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,则所做更改将丢失。 // 重新生成代码,这些更改将会丢失。
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FLY.Winder.BeiJiaDe.UI.Server.Properties {
namespace FLY.Winder.BeiJiaDe.UI.Server.Properties using System;
{
/// <summary> /// <summary>
/// 强类型资源类,用于查找本地化字符串等。 /// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary> /// </summary>
// 此类是由 StronglyTypedResourceBuilder // 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或除成员,请编辑 .ResX 文件,然后重新运行 ResGen // 若要添加或除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。 // (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources internal class Resources {
{
private static global::System.Resources.ResourceManager resourceMan; private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() internal Resources() {
{
} }
/// <summary> /// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。 /// 返回此类使用的缓存 ResourceManager 实例。
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager internal static global::System.Resources.ResourceManager ResourceManager {
{ get {
get if (object.ReferenceEquals(resourceMan, null)) {
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FLY.Winder.BeiJiaDe.UI.Server.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FLY.Winder.BeiJiaDe.UI.Server.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
} }
} }
/// <summary> /// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对 /// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。 /// 使用此强类型资源类的所有资源查找执行重写。
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture internal static global::System.Globalization.CultureInfo Culture {
{ get {
get
{
return resourceCulture; return resourceCulture;
} }
set set {
{
resourceCulture = value; resourceCulture = value;
} }
} }
......
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // 此代码由工具生成。
// Runtime Version:4.0.30319.42000 // 运行时版本:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // 对此文件的更改可能会导致不正确的行为,并且如果
// the code is regenerated. // 重新生成代码,这些更改将会丢失。
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FLY.Winder.BeiJiaDe.UI.Server.Properties {
namespace FLY.Winder.BeiJiaDe.UI.Server.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default public static Settings Default {
{ get {
get
{
return defaultInstance; return defaultInstance;
} }
} }
......
#!/bin/bash
#获取git 最后一个 tag 的描述!!!!
#LatestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
#install_dir="和美安装包_"$LatestTag
version=$1
if [ -z "$version" ]; then
echo "format error: version is empty"
echo "Usage: ./2.get_release.sh 7.3.0"
exit
fi
install_dir="江阴双亿03安装包"
# 对 $install_dir_root 重命名为 ${install_dir_root}_v${version}_yyyyMMdd
# date参考 https://www.cnblogs.com/zuiyue_jing/p/12557430.html
suffix=$(date +%Y%m%d)
install_dir=${install_dir}_v${version}_${suffix}
install_dir_root=$install_dir
if [ -e $install_dir ]; then
rm -rf $install_dir
fi
#复制 install 到 测厚仪安装包
cp -rf ../脚本/install $install_dir
#复制 install.json 到 测厚仪安装包
cp install.json $install_dir
#复制 版本描述
cp ../脚本/版本描述.md $install_dir
install_dir=$install_dir"/佛山市枫莱尔自动化技术有限公司/windows"
copy_to()
{
src_dir=$1
dest_dir=$2
files=$3
#检测文件夹是否存在
#存在,删除全部数据,再新创建;
#不存在,创建。
if [ -e $dest_dir ]; then
rm -rf $dest_dir
fi
mkdir -p $dest_dir
echo 复制 $dest_dir
for f in ${files[*]}; do
file_path=$src_dir"/"$f
cp -rf $file_path $dest_dir
if [ $? != 0 ]; then
echo 复制失败
exit 1
fi
done
}
copy_to2()
{
src_dir=$1
dest_dir=$2
files=$3
src_dir=$src_dir"/bin/Debug"
dest_dir=$install_dir"/"$dest_dir
copy_to $src_dir $dest_dir $files
#第2步,复制 release_conf 对应的出厂默认配置文件
src_dir="../脚本/release_conf/"$2
if [ ! -d $src_dir ]; then
return
fi
src_dir=$src_dir"/*"
cp -Rf $src_dir $dest_dir
}
#Project.FLY.FeedbackRenZiJia
src_dir="../Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Server"
dest_dir="FLY.FeedbackRenZiJia.UI.Server"
files=(\
"x64" "x86" \
"FLY.FeedbackRenZiJia.UI.Server.exe" \
"nlog.config" \
)
copy_to2 $src_dir $dest_dir $files
#Project.FLY.Winder
src_dir="../Project.FLY.Winder/FLY.Winder.BeiJiaDe.UI.Server"
dest_dir="FLY.Winder.BeiJiaDe.UI.Server"
files=(\
"FLY.Winder.BeiJiaDe.UI.Server.exe" \
)
copy_to2 $src_dir $dest_dir $files
# Project.FLY.Thick.BlowingScan
src_dir="../Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI.Client"
dest_dir="FLY.Thick.BlowingScan.UI.Client"
files=(\
"x64" "x86" \
"FLY.Thick.BlowingScan.UI.Client.exe" \
"nlog.config" \
)
copy_to2 $src_dir $dest_dir $files
src_dir="../Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI.Server"
dest_dir="FLY.Thick.BlowingScan.UI.Server"
files=(\
"x64" "x86" \
"FLY.Thick.BlowingScan.UI.Server.exe" \
"nlog.config" \
)
copy_to2 $src_dir $dest_dir $files
src_dir="../Project.FLY.Blowing.DbViewer/FLY.Blowing.DbViewer"
dest_dir="FLY.Blowing.DbViewer"
files=(\
"x64" "x86" \
"FLY.Blowing.DbViewer.exe" \
)
copy_to2 $src_dir $dest_dir $files
# 修改 $install_dir_root/install.json 中的版本号
# 参考 https://www.cnblogs.com/thePeaceOftheLord/p/11107737.html
# 正则表达式 https://www.cnblogs.com/zd520pyx1314/p/6061339.html
sed -i 's/"InstallZipVersion":".*"/"InstallZipVersion":"'${version}'"/g' ${install_dir_root}/install.json
# 复制 $install_dir_root/install.json 到 $install_dir/FLY.Thick.Blowing.UI.Fix.Client/update
cp ${install_dir_root}/install.json $install_dir/FLY.Thick.BlowingScan.UI.Client/update
fileName7z=${install_dir_root}.7z
if [ -e $fileName7z ]; then
rm $fileName7z
fi
# 进入安装包内 用7z压缩
cd ${install_dir_root}
"C:\Program Files\7-Zip\7z.exe" a ../${fileName7z} ./*
cd ..
echo 完成
\ No newline at end of file
{
"InstallZipVersion":"6.34.0",
"NewestInstallZipVersionInfoPath":"http://server.flyautomation.net:8889/download/hemeiInstallZipVersionInfo.json",
"DefaultNewestInstallZipPath":"D:\\测厚仪软件",
"DefaultInstallPath":"D:\\佛山市枫莱尔自动化技术有限公司\\windows",
"Items":[
{
"PackPath":"佛山市枫莱尔自动化技术有限公司\\windows\\FLY.Thick.BlowingScan.UI.Server",
"Exe":"FLY.Thick.BlowingScan.UI.Server.exe",
"Name":"扫描测厚仪服务器",
"IsAutoRun":true
},
{
"PackPath":"佛山市枫莱尔自动化技术有限公司\\windows\\FLY.Thick.BlowingScan.UI.Client",
"Exe":"FLY.Thick.BlowingScan.UI.Client.exe",
"Name":"扫描测厚仪客户端",
"IsAutoRun":true,
"Others":[
"default",
"unity",
"music",
"update",
"测厚仪说明书.pdf"
]
},
{
"PackPath":"佛山市枫莱尔自动化技术有限公司\\windows\\FLY.FeedbackRenZiJia.UI.Server",
"Exe":"FLY.FeedbackRenZiJia.UI.Server.exe",
"Name":"自动风环",
"IsAutoRun":true
},
{
"PackPath":"佛山市枫莱尔自动化技术有限公司\\windows\\FLY.Winder.BeiJiaDe.UI.Server",
"Exe":"FLY.Winder.BeiJiaDe.UI.Server.exe",
"Name":"旋转信号采集",
"IsAutoRun":true
},
{
"PackPath":"佛山市枫莱尔自动化技术有限公司\\windows\\LP3",
"Exe":"FLY.LinkProxy.UI.exe",
"Name":"LP3",
"IsAutoRun":true
}
]
}
\ 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