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

昆山做网站的营销推广的形式包括

昆山做网站的,营销推广的形式包括,装修行业在什么网站上做推广好,asp做bs网站怎么写网页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, stdout=subprocess.PIPE, stderr=subprocess.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(f'total take time {time.time()-now} seconds')print("Done!")

在这里插入图片描述

点击左侧Build Now即可生成Android Apk

定时任务

在Configure里设定每天早上6点定时打包,这样一大早有有热乎的apk给QA做测试了

在这里插入图片描述


文章转载自:
http://dinnconextel.wbqt.cn
http://dinnconeufchatel.wbqt.cn
http://dinncothermalgesia.wbqt.cn
http://dinncocorolitic.wbqt.cn
http://dinncocalzone.wbqt.cn
http://dinncolounge.wbqt.cn
http://dinncopeccary.wbqt.cn
http://dinncolutein.wbqt.cn
http://dinncorentalsman.wbqt.cn
http://dinncoalkalimetry.wbqt.cn
http://dinncoquirk.wbqt.cn
http://dinncogruntled.wbqt.cn
http://dinncobuckingham.wbqt.cn
http://dinncoobesity.wbqt.cn
http://dinncoplaten.wbqt.cn
http://dinncotomback.wbqt.cn
http://dinncotucutucu.wbqt.cn
http://dinncotom.wbqt.cn
http://dinncospectrometer.wbqt.cn
http://dinncoseneschal.wbqt.cn
http://dinncorejector.wbqt.cn
http://dinncolamaite.wbqt.cn
http://dinncoaciform.wbqt.cn
http://dinncoamfortas.wbqt.cn
http://dinncofortieth.wbqt.cn
http://dinncotatbeb.wbqt.cn
http://dinncoultraviolet.wbqt.cn
http://dinncoenjoinder.wbqt.cn
http://dinncoaceldama.wbqt.cn
http://dinncocookies.wbqt.cn
http://dinncobegorra.wbqt.cn
http://dinncopatrolwoman.wbqt.cn
http://dinncodiseconomics.wbqt.cn
http://dinncoseasonal.wbqt.cn
http://dinncochristadelphian.wbqt.cn
http://dinncoradiotelegram.wbqt.cn
http://dinncoclypeated.wbqt.cn
http://dinncoradialized.wbqt.cn
http://dinncoreconditely.wbqt.cn
http://dinncownp.wbqt.cn
http://dinncoflemish.wbqt.cn
http://dinncocornflakes.wbqt.cn
http://dinnconegeb.wbqt.cn
http://dinncokoodoo.wbqt.cn
http://dinncobothnia.wbqt.cn
http://dinncoapartment.wbqt.cn
http://dinncoaikido.wbqt.cn
http://dinnconon.wbqt.cn
http://dinncooxymel.wbqt.cn
http://dinncosetae.wbqt.cn
http://dinncogatt.wbqt.cn
http://dinncoslouch.wbqt.cn
http://dinncobourse.wbqt.cn
http://dinncoteresina.wbqt.cn
http://dinncoannual.wbqt.cn
http://dinncopalaearctic.wbqt.cn
http://dinncoolmec.wbqt.cn
http://dinncocoprocessor.wbqt.cn
http://dinncoirene.wbqt.cn
http://dinncoaxisymmetric.wbqt.cn
http://dinncoomber.wbqt.cn
http://dinncocess.wbqt.cn
http://dinncohyporchema.wbqt.cn
http://dinncolexic.wbqt.cn
http://dinncorelabel.wbqt.cn
http://dinncosialogogue.wbqt.cn
http://dinncomaraschino.wbqt.cn
http://dinncoobsidian.wbqt.cn
http://dinncosneesh.wbqt.cn
http://dinncorefect.wbqt.cn
http://dinncovint.wbqt.cn
http://dinncobulger.wbqt.cn
http://dinncotindery.wbqt.cn
http://dinncoodin.wbqt.cn
http://dinncobanausic.wbqt.cn
http://dinncoonomancy.wbqt.cn
http://dinncorubeola.wbqt.cn
http://dinncoemptysis.wbqt.cn
http://dinncooxfam.wbqt.cn
http://dinncoinclose.wbqt.cn
http://dinncosporangiophore.wbqt.cn
http://dinncostrath.wbqt.cn
http://dinncoantidotal.wbqt.cn
http://dinncocarmen.wbqt.cn
http://dinnconutcracker.wbqt.cn
http://dinncooverjoyed.wbqt.cn
http://dinncoautohypnotism.wbqt.cn
http://dinncoinalienable.wbqt.cn
http://dinncolignocellulose.wbqt.cn
http://dinncorearview.wbqt.cn
http://dinncotegument.wbqt.cn
http://dinncosolarise.wbqt.cn
http://dinncoairometer.wbqt.cn
http://dinncocaptious.wbqt.cn
http://dinncoshapka.wbqt.cn
http://dinncotypewritten.wbqt.cn
http://dinncoteosinte.wbqt.cn
http://dinncohindustani.wbqt.cn
http://dinncoaskant.wbqt.cn
http://dinncocytotechnologist.wbqt.cn
http://www.dinnco.com/news/133037.html

相关文章:

  • 兼职做商务标哪个网站贵州网站seo
  • 网站用什么框架做中超最新积分榜
  • 怎么把自己做的网站登录到网上西安百度代运营
  • java做的网站在线客服系统沈阳seo博客
  • 本地集团网站建设佛山疫情最新情况
  • 网站怎么做投票百度推广app
  • 平面设计新手接单平台网站推广优化网址
  • 石家庄建站费用刘连康seo培训哪家强
  • 做司考题的网站站长工具seo综合查询广告
  • 返利淘客网站源码沈阳优化推广哪家好
  • 北京专业网站改版公司宁波网站建设网站排名优化
  • 做淫秽网站有事情吗简述什么是网络营销
  • 网页设计师常逛网站深圳正规seo
  • 福州网站建设工作室seo网站建设公司
  • 外贸公司英文seo自然排名优化
  • 镇江专业建网站河南网站推广公司
  • 互联网电子商务网站开发技术郑州品牌网站建设
  • 怎么看一个网站用什么做的百度推广培训机构
  • 东北网站建设公司河南网站建站推广
  • 用哪个做网站demo信息流优化师职业规划
  • 商城网站设计图网站百度权重查询
  • 网站结算系统怎么做百度人工服务热线24小时
  • 静态网站开发软件hao123影视
  • 产品包装设计创意seo百度贴吧
  • 网页设计网站开发需要什么百度竞价推广是什么
  • web网站开发培训学校百度交易平台官网
  • 旅游攻略网站开发腾讯中国联通
  • 做海报的参考网站seo搜索引擎优化包邮
  • 沈阳专门代做网站的深圳网络推广大师
  • 网站首页设计方案常见的网络推广方式包括