Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
3e2e6b8e
提交
3e2e6b8e
authored
2月 11, 2017
作者:
Andrey Volk
提交者:
Ken Rice
2月 13, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-10034 [WIX] Fix WIX to respect Win32/x64 binary output folders.
上级
fd404377
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
49 行增加
和
12 行删除
+49
-12
FullVersion.cmd
w32/Setup/FullVersion.cmd
+9
-0
Product.2015.wxs
w32/Setup/Product.2015.wxs
+1
-1
Setup.2015.wixproj
w32/Setup/Setup.2015.wixproj
+39
-11
没有找到文件。
w32/Setup/FullVersion.cmd
0 → 100644
浏览文件 @
3e2e6b8e
REM This script reads the configure.ac
REM and outputs a version parsing the AC_INIT line
FOR /f "delims=" %%i in ('FIND /N "AC_INIT" ..\..\configure.ac') DO SET version_contained_string=%%i
FOR /f "tokens=2 delims=," %%a in ("%version_contained_string%") DO SET dirty_version=%%a
SET almost_clean_version=%dirty_version:[=%
SET version_with_spaces=%almost_clean_version:]=%
SET full_version=%version_with_spaces: =%
echo %full_version%
\ No newline at end of file
w32/Setup/Product.2015.wxs
浏览文件 @
3e2e6b8e
...
...
@@ -27,7 +27,7 @@
<?endif ?>
<Wix
xmlns=
"http://schemas.microsoft.com/wix/2006/wi"
>
<Product
Id=
"b004a325-1272-47e5-a415-a74e9fc99865"
Name=
"$(var.ProductName)"
Language=
"1033"
Version=
"
1.0.0.0
"
Manufacturer=
"FreeSWITCH"
UpgradeCode=
"3af7020b-1348-45e8-a0cf-80909d4eb421"
>
<Product
Id=
"b004a325-1272-47e5-a415-a74e9fc99865"
Name=
"$(var.ProductName)"
Language=
"1033"
Version=
"
$(var.ProductVersion)
"
Manufacturer=
"FreeSWITCH"
UpgradeCode=
"3af7020b-1348-45e8-a0cf-80909d4eb421"
>
<Package
InstallerVersion=
"405"
Compressed=
"yes"
/>
<Media
Id=
"1"
Cabinet=
"media1.cab"
EmbedCab=
"yes"
/>
...
...
w32/Setup/Setup.2015.wixproj
浏览文件 @
3e2e6b8e
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Project
ToolsVersion=
"4.0"
DefaultTargets=
"Build"
InitialTargets=
"LoadDynamicVariables"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<ProductVersion>
3.5
</ProductVersion>
<ProjectGuid>
{47213370-b933-487d-9f45-bca26d7e2b6f}
</ProjectGuid>
<SchemaVersion>
2.0
</SchemaVersion>
<OutputName>
FreeSWITCH
</OutputName>
...
...
@@ -10,7 +9,7 @@
<WixTargetsPath
Condition=
" '$(WixTargetsPath)' == '' "
>
$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets
</WixTargetsPath>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|x86' "
>
<OutputPath>
bin\
Win32
\Debug\
</OutputPath>
<OutputPath>
bin\
x86
\Debug\
</OutputPath>
<IntermediateOutputPath>
obj\X86\$(Configuration)\
</IntermediateOutputPath>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\Win32\debug\sounds;FreeSWITCHBaseDir=$(SolutionDir)Win32\$(Configuration);PlatformDir=Win32;
</DefineConstants>
<WixVariables>
...
...
@@ -415,17 +414,46 @@
<Content
Include=
"filter.xslt"
/>
</ItemGroup>
<Import
Project=
"$(WixTargetsPath)"
/>
<PropertyGroup>
<PropertyGroup
Condition=
" '$(Platform)' == 'x86' "
>
<PreBuildEvent>
"$(WixToolPath)\heat.exe" dir "$(ProjectDir)..\..\conf\vanilla" -cg FreeSWITCHConfFiles -gg -scom -sreg -sfrag -srd -dr CONFLOCATION -var var.FreeSWITCHConfFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHConfFiles.wxs"
"$(WixToolPath)\heat.exe" dir "$(SolutionDir)Win32\$(Configuration)\sounds" -cg FreeSWITCHSoundFiles8 -gg -scom -sreg -sfrag -srd -dr SOUNDLOCATION -var var.FreeSWITCHSoundFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHSoundFiles8.wxs"
"$(WixToolPath)\heat.exe" dir "$(SolutionDir)Win32\$(Configuration)" -t $(ProjectDir)filter.xslt -cg FreeSWITCHBaseFiles -gg -scom -sreg -sfrag -srd -dr INSTALLLOCATION -var var.FreeSWITCHBaseDir -out "$(ProjectDir)Fragments\FreeSWITCHBaseFiles.wxs"
</PreBuildEvent>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Platform)' == 'x64' "
>
<PreBuildEvent>
"$(WixToolPath)\heat.exe" dir "$(ProjectDir)..\..\conf\vanilla" -cg FreeSWITCHConfFiles -gg -scom -sreg -sfrag -srd -dr CONFLOCATION -var var.FreeSWITCHConfFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHConfFiles.wxs"
"$(WixToolPath)\heat.exe" dir "$(SolutionDir)x64\$(Configuration)\sounds" -cg FreeSWITCHSoundFiles8 -gg -scom -sreg -sfrag -srd -dr SOUNDLOCATION -var var.FreeSWITCHSoundFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHSoundFiles8.wxs"
"$(WixToolPath)\heat.exe" dir "$(SolutionDir)x64\$(Configuration)" -t $(ProjectDir)filter.xslt -cg FreeSWITCHBaseFiles -gg -scom -sreg -sfrag -srd -dr INSTALLLOCATION -var var.FreeSWITCHBaseDir -out "$(ProjectDir)Fragments\FreeSWITCHBaseFiles.wxs"
</PreBuildEvent>
</PropertyGroup>
<Target
Name=
"LoadDynamicVariables"
>
<Exec
Command=
"$(SolutionDir)w32\Setup\FullVersion.cmd"
ConsoleToMSBuild=
"true"
>
<Output
TaskParameter=
"ConsoleOutput"
PropertyName=
"FullVersion"
/>
</Exec>
<CreateProperty
Condition=
"$(FullVersion) != ''"
Value=
"ProductVersion=$(FullVersion);$(DefineConstants)"
>
<Output
TaskParameter=
"Value"
PropertyName=
"DefineConstants"
/>
</CreateProperty>
<CreateProperty
Condition=
"'$(Platform)'=='x86'"
Value=
"win32"
>
<Output
TaskParameter=
"Value"
PropertyName=
"UserFriendlyPlatform"
/>
</CreateProperty>
<CreateProperty
Condition=
"'$(Platform)'=='x64'"
Value=
"x64"
>
<Output
TaskParameter=
"Value"
PropertyName=
"UserFriendlyPlatform"
/>
</CreateProperty>
<CreateProperty
Condition=
"$(FullVersion) != ''"
Value=
"$(SolutionDir)$(UserFriendlyPlatform)\$(OutputName)-$(FullVersion)-$(UserFriendlyPlatform)-$(Configuration).msi"
>
<Output
TaskParameter=
"Value"
PropertyName=
"DestinationFileName"
/>
</CreateProperty>
</Target>
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Wix.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
To modify your build process, add your task inside one of the targets below.
Other similar extension points exist, see Wix.targets.
-->
<Target
Name=
"BeforeBuild"
>
<Message
Importance=
"High"
Text=
"Deleting previously created MSI files."
/>
<Delete
Files=
"$(OutputPath)$(OutputName).msi"
/>
<Delete
Files=
"$(DestinationFileName)"
/>
</Target>
<Target
Name=
"AfterBuild"
>
<Copy
SourceFiles=
"$(OutputPath)$(OutputName).msi"
DestinationFiles=
"$(DestinationFileName)"
/>
<Message
Importance=
"High"
Condition=
"Exists('$(DestinationFileName)')"
Text=
"Success. An output MSI has been copied to $(DestinationFileName)"
/>
</Target>
</Project>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论