使用批处理打包C#开发程序
最近项目接近尾声,测试比较频繁,每天需要发布多个版本
@echo off
set zip=C:\Program Files\7-Zip\7z.exe
set timestamp=%date:~6,4%-%date:~0,2%-%date:~3,2%
set timestamp=%date:-=%
set tardir=%cd%\Car.SMIS.App\bin
set src=%cd%\Car.SMIS.App\bin\Release\
set src1=%src%Facility
set src2=%src%appsettings.json
set src3=%src%unity.config
set src4=%src%Car.*
set src5=%src%log4net.config cls
echo 7z.exe "%zip%"
echo "%src4%"
echo tardir "%tardir%\%timestamp%.zip" echo [%date% %time%] Start creating zip files -- mq > "%tardir%\ZipDescription.txt"
"%zip%" a "%tardir%\Car.SMIS.App_Release_%timestamp%_00_update.zip" "%src1%" "%src2%" "%src3%" "%src4%" "%src5%"
::"%zip%" a "%tardir%\Car.SMIS.App_Release_%timestamp%_00_SDK.zip" "%src%*" -x!"%src1%" -x!"%src2%" -x!"%src3%" -x!"%src4%" -x!"%src5%" rem Add zip description file
echo [%date% %time%] End creating zip file -- mq >> "%tardir%\ZipDescription.txt"
if exist "%tardir%\Car.SMIS.App_Release_%timestamp%_00_update.zip" (
"%zip%" u "%tardir%\Car.SMIS.App_Release_%timestamp%_00_update.zip" "%tardir%\ZipDescription.txt"
) else ( echo ----------------------------------------------------------------------------
echo [Error] file does not exist : "%tardir%\Car.SMIS.App_Release_%timestamp%_00_update.zip" )
if exist "%tardir%\Car.SMIS.App_Release_%timestamp%_00_SDK.zip" (
"%zip%" u "%tardir%\Car.SMIS.App_Release_%timestamp%_00_SDK.zip" "%tardir%\ZipDescription.txt"
) else ( echo ----------------------------------------------------------------------------
echo [Error] file does not exist : "%tardir%\Car.SMIS.App_Release_%timestamp%_00_SDK.zip" )
del "%tardir%\ZipDescription.txt" pause
explorer "%tardir%"
goto :eof
测试Debug的打包
@echo off
set zip=C:\Program Files\7-Zip\7z.exe
set timestamp=%date:~6,4%-%date:~0,2%-%date:~3,2%
set timestamp=%date:-=%
set src=%cd%\Debug\ echo 7z.exe : "%zip%"
echo src : "%src%"
echo tardir : "%timestamp%.zip"
echo cd : %cd% echo.
set fCount=0
for /f "delims=" %%i in ('dir /b /a-d "%cd%\Debug_%timestamp%_*.zip"') do (set /a fCount+=1)
set /a fCount+=1 ::"%zip%" a "%cd%\Debug_%timestamp%_%fCount%.zip" "%src%" pause
使用批处理打包C#开发程序的更多相关文章
- VS2010开发程序打包详解
VS2010开发程序打包详解 转自:http://blog.sina.com.cn/s/blog_473b385101019ufr.html 首先打开已经完成的工程,如图: 下面开始制作安装程序包. ...
- .net core 和 WPF 开发升讯威在线客服系统:把 .Net Framework 打包进安装程序
本系列文章详细介绍使用 .net core 和 WPF 开发 升讯威在线客服与营销系统 的过程. 系列文章目录: https://blog.shengxunwei.com/Home/Post/44a3 ...
- sencha touch打包成安装程序
为了更好地向大家演示如何打包一个sencha touch的项目,我们用sencha cmd创建一个演示项目,如果你的sencha cmd环境还没有配置,请参照 sencha touch 入门系列 (二 ...
- C#打包制作安装程序过程全记录
该文是根据网上的文章并结合自己实际打包的过程而整理的. 开发平台:VisualStudio2005中文版. 步骤如下: 1. 创建一个安装向导项目或安装部署项目 新建项目-〉其他项目类型-〉安装与部署 ...
- 使用cx_Freeze 将python3代码打包成.exe程序
在这里分享一下如何在py3下使用cx_Freeze打包pyqt5的程序 首先吐槽下,深深鄙视一下百度,各种百度各种没有,之前我在py2.7下使用pyqt4开发过一个小软件,用的是py2exe进行打包的 ...
- 图解 VS2015 如何打包winform 安装程序
http://learn.flexerasoftware.com/content/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio?lang=10 ...
- VS2015 打包winform 安装程序
最近开发了一个小软件.由于需要打包.网上找了一些资料.然后整合了起来.希望对大家有所帮助.不全面请见谅. 打包控件 InstallShield-Limited-Edition 下面是注册地址 htt ...
- MapReduce开发程序,运行环境配置
Hadoop主机:linux 开发环境主机:Win7 + Itellij 本地运行 1. 下载hadoop安装包,放到本地目录中. 2. 配置环境变量$HADOOP_HOME及$PATH=$HADOO ...
- sencha touch 扩展篇之将sencha touch打包成安装程序(上)- 使用sencha cmd打包安装程序
由于最近一直忙着android原生的开发,很久没有更新博客了,官方的sencha cmd工具功能非常强大,创建项目,压缩项目,打包安装程序都能轻松实现,这讲我们就给大家介绍下如何使用sencha cm ...
随机推荐
- VUE AntDesign DatePicker设置默认显示当前日期
1:main.js中引入依赖 import Vue from "vue"; import { DatePicker } from 'ant-design-vue'; import ...
- web基础---->script标签的特殊使用
今天要讲的就是怎样使用<script>去请求一个servlet,加载一些js资源以及额外的逻辑处理: 目录: JS的引入的几种方式 在script的标签中引入Servlet 动态引入JS的 ...
- Google BERT摘要
1.BERT模型 BERT的全称是Bidirectional Encoder Representation from Transformers,即双向Transformer的Encoder,因为dec ...
- AIOps基本概念以及能力分级
AIOps 自从 Gartner 于2016年提出至今已有一段时间,虽然在顶级互联网及电信企业,已有较多落地,但至今仍无基于生产实践的理论体系及实施指南. 高效运维社区和云计算开源产业联盟(OSCAR ...
- understanding backpropagation
几个有助于加深对反向传播算法直观理解的网页,包括普通前向神经网络,卷积神经网络以及利用BP对一般性函数求导 A Visual Explanation of the Back Propagation A ...
- 基于redis+lua实现高并发场景下的秒杀限流解决方案
转自:https://blog.csdn.net/zzaric/article/details/80641786 应用场景如下: 公司内有多个业务系统,由于业务系统内有向用户发送消息的服务,所以通过统 ...
- [IOT] - 使用 .Net Core 操作 GPIO 引脚点亮 LED 灯泡
1. 在 VS 2019 中创建 .Net Core 控制台应用程序,使用 Nuget 安装程序包: System.Device.GpioIot.Device.Bindings 2. 更新 Main ...
- Spring学习指南-第二章-Spring框架基础(完)
第二章 Spring框架基础 面向接口编程的设计方法 在上一章中,我们看到了一个依赖于其他类的POJO类包含了对其依赖项的具体类的引用.例如,FixedDepositController 类包含 ...
- 通过Fastdfs进行文件上传服务(文件和图片的统一处理)
1.文件上传简单流程分析图: 2.Fastdfs介绍: Fastdfs由两个角色组成: Tracker(集群):调度(帮你找到有空闲的Storage) Storage(集群):文件存储(帮你保存文件或 ...
- antd通过 filterDropdown 自定义--按某天时间搜索
import React, { Component } from 'react'; import { Table, Input, Button, Icon, DatePicker } from 'an ...