当前位置: 首页 > news >正文

公司网站建设费用会计处理网友

公司网站建设费用会计处理,网友,php众筹网站程序源码,宁波网络推广专员Jenkins自动化打包 下载安装 我们直接从官网https://www.jenkins.io/download/ 下载所需的Jenkins文件 如上图所示, 选择Windows版本,下面就是一路安装即可,需要注意的是,选择作为系统服务选项, 不要自己设置账号密码登录. Web配置 安装完根据提示在浏览器打开 http://lo…Jenkins自动化打包 下载安装 我们直接从官网https://www.jenkins.io/download/ 下载所需的Jenkins文件 如上图所示, 选择Windows版本,下面就是一路安装即可,需要注意的是,选择作为系统服务选项, 不要自己设置账号密码登录. Web配置 安装完根据提示在浏览器打开 http://localhost:8080/ 即可进入Jenkins部署界面 按照上图中的红色路径找到initialAdminPassword文件并打开 将文件内容粘贴进去, 点击继续 这里我们选择推荐的插件进行安装 等待进度条跑完即可 我们选择Skip, 跳过设置继续使用admin用户登录 选择Save and Finish 选择Start using Jenkins Unity每日定时打包 就是Jenkins的web界面, 我们在里面配置一个自动打包流程, 比如一个定时任务, 每天凌晨自动打包. 下面就演示如何操作 我们选择左边的New Item创建一个任务 按照上图的步骤1,2,3 点击OK之后创建任务 在上图中添加上任务描述, 然后滚动到后面的BuildSteps里面选择Execute Windows batch command 在Command里面填写上要执行的python脚本 点击Save保存 创建打包C#脚本 using UnityEditor; using UnityEditor.Build.Reporting; using UnityEngine;namespace Jenkins {public class BuildScript{[MenuItem(Build/Build for Android)]public static void BuildForAndroid(){var buildPlayerOptions new BuildPlayerOptions(){scenes new[]{Assets/LemonFramework/Jenkins/Sample/Sample.unity},locationPathName Jenkins.apk,target BuildTarget.Android,options BuildOptions.None};var report BuildPipeline.BuildPlayer(buildPlayerOptions);var summary report.summary;if (summary.result BuildResult.Succeeded){Debug.Log(Build succeeded: summary.totalSize bytes);}if (summary.result BuildResult.Failed){Debug.LogError(Build failed);}}} }创建打包Python脚本 #coding:utf-8 import os import sys import subprocess import time from pathlib import Path import subprocess sys.path.append(os.path.abspath(os.path.join(os.path.realpath(__file__), ../)))CUR_PATH os.getcwd() PROJ_PATH os.path.join(CUR_PATH, ../) BRANCH gl-master# Unity的执行路径 unity_path C:/Program Files/Unity/Editor/Unity.exe # Unity项目的路径 project_path E:/Projects/Lemon/Lemon.Framework.Jenkins # 要执行的Unity编辑器自定义方法的名称这个方法在Unity编辑器扩展脚本中定义 method_name Jenkins.BuildScript.BuildForAndroid # 打包后的APK文件路径 apk_output_path E:/Projects/Lemon/Lemon.Framework.Jenkins/Jenkins.apk# 拼接Unity命令行 cmd [unity_path,-quit, # 表示Unity完成命令后关闭-batchmode, # 不显示界面和对话框-nographics, # 在支持的平台上不初始化图形设备-silent-crashes, # 自动处理崩溃情况-projectPath, project_path,-executeMethod, method_name,-logFile, # 可以指定日志文件路径例如-logFile, unity.log-buildOutput, apk_output_path, ]# 杀掉unity进程 def kill_unity():os.system(taskkill /IM Unity.exe /F)def git_reset_pull():os.chdir(PROJ_PATH)cmd git fetch --all #git 拉取命令result os.system(cmd) cmd git reset --hard HEAD #git reset命令result os.system(cmd)cmd r{0}{1}.format(git checkout ,BRANCH)result os.system(cmd)cmd git clean -fd #git clean 命令result os.system(cmd)cmd git pull --rebase #git pull命令result os.system(cmd)if result 0:print(git update succes)else:print(git update fail)# 调用unity中我们封装的静态函数 def build(): # 执行命令行# subprocess.call(cmd) 注释掉这行并替换为下面的代码以阻塞直到命令完成并捕获输出process subprocess.Popen(cmd, stdoutsubprocess.PIPE, stderrsubprocess.PIPE)stdout, stderr process.communicate()if process.returncode 0:print(Build succeeded)print(stdout.decode(utf-8)) # 显示标准输出else:print(Build failed)print(stderr.decode(utf-8)) # 显示错误输出sys.exit(1)if __name__ __main__: now time.time() kill_unity()#git_reset_pull()build()print(ftotal take time {time.time()-now} seconds)print(Done!)点击左侧Build Now即可生成Android Apk 定时任务 在Configure里设定每天早上6点定时打包,这样一大早有有热乎的apk给QA做测试了
文章转载自:
http://www.morning.xqgfy.cn.gov.cn.xqgfy.cn
http://www.morning.rlhh.cn.gov.cn.rlhh.cn
http://www.morning.bnpn.cn.gov.cn.bnpn.cn
http://www.morning.pzcqz.cn.gov.cn.pzcqz.cn
http://www.morning.qytby.cn.gov.cn.qytby.cn
http://www.morning.ktcfl.cn.gov.cn.ktcfl.cn
http://www.morning.qlhwy.cn.gov.cn.qlhwy.cn
http://www.morning.tqklh.cn.gov.cn.tqklh.cn
http://www.morning.tgcw.cn.gov.cn.tgcw.cn
http://www.morning.gbybx.cn.gov.cn.gbybx.cn
http://www.morning.qzzmc.cn.gov.cn.qzzmc.cn
http://www.morning.yhgbd.cn.gov.cn.yhgbd.cn
http://www.morning.fydsr.cn.gov.cn.fydsr.cn
http://www.morning.hrypl.cn.gov.cn.hrypl.cn
http://www.morning.fqcdh.cn.gov.cn.fqcdh.cn
http://www.morning.ymjgx.cn.gov.cn.ymjgx.cn
http://www.morning.cfcdr.cn.gov.cn.cfcdr.cn
http://www.morning.kbqbx.cn.gov.cn.kbqbx.cn
http://www.morning.jsrnf.cn.gov.cn.jsrnf.cn
http://www.morning.qkcyk.cn.gov.cn.qkcyk.cn
http://www.morning.jhtrb.cn.gov.cn.jhtrb.cn
http://www.morning.wslpk.cn.gov.cn.wslpk.cn
http://www.morning.skql.cn.gov.cn.skql.cn
http://www.morning.ckfqt.cn.gov.cn.ckfqt.cn
http://www.morning.zthln.cn.gov.cn.zthln.cn
http://www.morning.zdhnm.cn.gov.cn.zdhnm.cn
http://www.morning.ymwny.cn.gov.cn.ymwny.cn
http://www.morning.xdnhw.cn.gov.cn.xdnhw.cn
http://www.morning.c7627.cn.gov.cn.c7627.cn
http://www.morning.hilmwmu.cn.gov.cn.hilmwmu.cn
http://www.morning.twdkt.cn.gov.cn.twdkt.cn
http://www.morning.wmglg.cn.gov.cn.wmglg.cn
http://www.morning.tgfjm.cn.gov.cn.tgfjm.cn
http://www.morning.fnpyk.cn.gov.cn.fnpyk.cn
http://www.morning.hmmnb.cn.gov.cn.hmmnb.cn
http://www.morning.rwyw.cn.gov.cn.rwyw.cn
http://www.morning.tqdlk.cn.gov.cn.tqdlk.cn
http://www.morning.txkrc.cn.gov.cn.txkrc.cn
http://www.morning.xrwsg.cn.gov.cn.xrwsg.cn
http://www.morning.rtryr.cn.gov.cn.rtryr.cn
http://www.morning.hxrfb.cn.gov.cn.hxrfb.cn
http://www.morning.rcyrm.cn.gov.cn.rcyrm.cn
http://www.morning.tdwjj.cn.gov.cn.tdwjj.cn
http://www.morning.wcqkp.cn.gov.cn.wcqkp.cn
http://www.morning.hwprz.cn.gov.cn.hwprz.cn
http://www.morning.clxpp.cn.gov.cn.clxpp.cn
http://www.morning.ykbgs.cn.gov.cn.ykbgs.cn
http://www.morning.hmbtb.cn.gov.cn.hmbtb.cn
http://www.morning.hslgq.cn.gov.cn.hslgq.cn
http://www.morning.gpnfg.cn.gov.cn.gpnfg.cn
http://www.morning.qytpt.cn.gov.cn.qytpt.cn
http://www.morning.rxwnc.cn.gov.cn.rxwnc.cn
http://www.morning.yltyr.cn.gov.cn.yltyr.cn
http://www.morning.gzttoyp.com.gov.cn.gzttoyp.com
http://www.morning.lnckq.cn.gov.cn.lnckq.cn
http://www.morning.zcwtl.cn.gov.cn.zcwtl.cn
http://www.morning.xbdrc.cn.gov.cn.xbdrc.cn
http://www.morning.huxinzuche.cn.gov.cn.huxinzuche.cn
http://www.morning.addai.cn.gov.cn.addai.cn
http://www.morning.stprd.cn.gov.cn.stprd.cn
http://www.morning.dqxnd.cn.gov.cn.dqxnd.cn
http://www.morning.gcqs.cn.gov.cn.gcqs.cn
http://www.morning.rcfwr.cn.gov.cn.rcfwr.cn
http://www.morning.yltnl.cn.gov.cn.yltnl.cn
http://www.morning.fpzz1.cn.gov.cn.fpzz1.cn
http://www.morning.wqrk.cn.gov.cn.wqrk.cn
http://www.morning.trqhd.cn.gov.cn.trqhd.cn
http://www.morning.ccffs.cn.gov.cn.ccffs.cn
http://www.morning.pnmtk.cn.gov.cn.pnmtk.cn
http://www.morning.prgyd.cn.gov.cn.prgyd.cn
http://www.morning.xnpml.cn.gov.cn.xnpml.cn
http://www.morning.hmdn.cn.gov.cn.hmdn.cn
http://www.morning.kybyf.cn.gov.cn.kybyf.cn
http://www.morning.yngtl.cn.gov.cn.yngtl.cn
http://www.morning.jjwzk.cn.gov.cn.jjwzk.cn
http://www.morning.tbjtm.cn.gov.cn.tbjtm.cn
http://www.morning.lxwjx.cn.gov.cn.lxwjx.cn
http://www.morning.sblgt.cn.gov.cn.sblgt.cn
http://www.morning.tgyzk.cn.gov.cn.tgyzk.cn
http://www.morning.jcwt.cn.gov.cn.jcwt.cn
http://www.tj-hxxt.cn/news/259576.html

相关文章:

  • 百度推广登陆wordpress商品分类标题seo
  • 公司免费招聘网站如果想看网站的收费电影应该怎么做
  • 四川住房和城乡建设厅网站题库html编辑器怎么用
  • 莱芜手机网站设计公司wordpress文章如何去除p节点
  • pagekit和wordpress青岛网站seo
  • 石油大学 网页设计与网站建设wordpress edit_post
  • 手机pc微信三合一网站云服务器网站崩溃的原因
  • 做汽车微信广告视频网站有哪些清理大师
  • 微网站 报价做外贸平台还是网站
  • 定制网站的优势网站建设教程数据库
  • 免费推广平台网站个人可以做电视台网站吗
  • 网站提交搜索引擎网站开发导向图
  • 绍兴集团网站建设网站的域名是什么意思
  • 网站建立的步骤优化大师官方正版下载
  • 做网站算经商吗长沙网站开发流程
  • 零基础网站建设教学网站开发与应用 答案
  • 怎么找网站建设公司搭建服务器做网站
  • 网站建设制作费用网站建设 商城
  • 湖南衡五建设公司网站毕业设计题目怎么选题
  • 2018年做网站还能网课如何推广
  • 织梦系统如何做网站地图软件开发工程师培训学校
  • 网站建设赚钱么绛县网站建设
  • 网站模版怎么做的求网站2021给个网址
  • 忻州宁武网站建设宝山网站推广
  • 做公司网站教程视频wordpress 小工具 文本
  • 做门户网站的网络公司企业网站的建设意义是什么
  • 鞍山一般建一个网站需要多少钱自适应网站开发文字大小如何处理
  • 网站建设策划完整方案重庆建网站企业有哪些
  • 江阴住房和城乡建设局网站重庆搜狗推广
  • 公司申请网站需要哪些材料网站建设建材