免费试用

中文化、本土化、云端化的在线跨平台软件开发工具,支持APP、电脑端、小程序、IOS免签等等

苹果软件打包网站

苹果软件打包网站,也被称为苹果软件封装网站,是指一种将苹果应用程序打包成安装包的网站。这样可以方便用户下载和安装软件,同时也可以保护软件的版权和安全性。下面将详细介绍苹果软件打包网站的原理和操作流程。

一、原理

苹果软件打包网站的原理是将苹果应用程序打包成安装包,让用户可以直接下载安装。苹果应用程序通常是以.app为后缀的文件,这种文件不能直接被安装在其他电脑上。但是,苹果操作系统提供了一种打包工具——pkgbuild,可以将苹果应用程序打包成.pkg安装包。苹果软件打包网站就是利用这种工具将苹果应用程序打包成.pkg安装包,并上传到服务器上,供用户下载和安装。

二、操作流程

苹果软件打包网站的操作流程主要包括以下几个步骤:

1. 准备工作

在打包之前,需要准备好以下工具和文件:

- Xcode:苹果官方开发工具,用于编写和打包应用程序。

- pkgbuild:苹果提供的打包工具,可以将应用程序打包成安装包。

- Distribution.xml:描述安装包的元数据文件,包括软件名称、版本号、作者、版权信息等。

- 应用程序文件:需要打包的应用程序文件。

2. 创建安装包

使用pkgbuild工具创建安装包,命令格式如下:

pkgbuild --root 应用程序目录 --identifier com.example.app --version 1.0 --install-location /Applications --scripts 脚本目录 安装包名称.pkg

其中,--root参数指定应用程序的根目录,--identifier参数指定唯一标识符,--version参数指定版本号,--install-location参数指定安装位置,--scripts参数指定脚本目录,安装包名称.pkg为自定义的安装包名称。

3. 编写元数据文件

使用文本编辑器编写Distribution.xml文件,描述安装包的元数据信息,命令格式如下:

软件名称

软件名称

软件名称.pkg

其中,标签指定软件名称,<background>标签指定安装界面背景图片,<license>、<readme>、<conclusion>标签分别指定安装过程中的许可协议、使用说明和安装完成后的提示信息。 <choices-outline>标签定义安装选项,<pkg-ref>标签指定安装包的唯一标识符和版本号,以及安装包的文件名。</p><p>4. 打包安装程序</p><p>使用productbuild工具将安装包和Distribution.xml文件打包成安装程序,命令格式如下:</p><p>productbuild --distribution Distribution.xml --resources 资源目录 --package-path 安装包目录 安装程序名称.pkg</p><p>其中,--distribution参数指定Distribution.xml文件路径,--resources参数指定资源目录,--package-path参数指定安装包目录,安装程序名称.pkg为自定义的安装程序名称。</p><p>5. 上传到网站</p><p>将打包好的安装程序上传到网站服务器,供用户下载和安装。</p><p>三、总结</p><p>苹果软件打包网站是一种将苹果应用程序打包成安装包的网站。其原理是利用pkgbuild工具将应用程序打包成.pkg安装包,再使用productbuild工具将安装包和Distribution.xml文件打包成安装程序。操作流程包括准备工作、创建安装包、编写元数据文件、打包安装程序和上传到网站。通过苹果软件打包网站,用户可以方便地下载和安装软件,同时也可以保护软件的版权和安全性。</p></div> <hr style="margin: 20px 0;height: 0;border: none; border-bottom: 1px dashed #ddd;"/> <div class="tag-banner"><a href="https://ruanzhu.yimenapp.com/"><img src="//cdn.myapp.ltd/ag/3/xinruanzhu.gif" style="vertical-align: top;display: inline-block;width: auto;max-width:100%;"></a></div> <div style="font-size:130%;padding-top:20px;">相关知识:</div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-ios-da-ipa-bao-6261.html">ios打ipa包</a> <div class=summary>iOS打IPA包是将开发者编写好的iOS应用程序打包成IPA文件,供用户进行安装和使用的过程。这个过程需要使用Xcode集成开发环境和iOS设备。打IPA包的原理主要是将Xcode生成的.app文件打包成IPA文件。在iOS开发中,.app文件是开发者在X</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-zhi-zuo-yi-ge-app-de-fei-yong-5657.html">制作一个app的费用</a> <div class=summary>制作一个app的费用是一个相对复杂的问题,因为它取决于多种因素,如应用的类型、功能、设计、开发人员的经验和地理位置等等。在这篇文章中,我们将详细介绍制作一个app的费用的原理和相关的因素。首先,应用的类型是一个重要的考虑因素。根据应用的类型,开发费用可能会</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-ping-guo-da-bao-gong-ju-5344.html">苹果打包工具</a> <div class=summary>苹果打包工具,也称为Xcode,是苹果公司推出的一款集成开发环境(IDE),主要用于开发苹果操作系统(iOS、macOS、watchOS和tvOS)应用程序的工具。Xcode提供了多种功能,包括代码编辑器、编译器、调试器、界面设计工具、模拟器等,可以帮助开</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-h5-da-bao-shuang-duan-lu-se-app-5190.html">h5打包双端绿色app</a> <div class=summary>H5打包双端绿色App是一种将H5页面打包成绿色App的技术,可以在移动设备上直接运行。H5页面是指使用HTML、CSS和JavaScript等Web技术编写的网页,因为可以跨平台、跨设备运行,所以被广泛应用于移动应用开发中。H5打包双端绿色App的原理是</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-wang-zhi-app-da-bao-5054.html">网址app打包</a> <div class=summary>网址app打包是指将一个网站或者一个网页应用程序(PWA)打包成一个移动应用程序(APP),使得用户可以使用移动设备访问该网站或者网页应用程序。网址app打包的原理是将网站或者网页应用程序封装成一个原生应用程序,用户可以通过应用商店下载和安装该应用程序,然</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-zai-xian-app-feng-zhuang-4858.html">在线app封装</a> <div class=summary>在线APP封装是一种将网页应用封装成原生应用的技术,也被称为H5应用封装。在线APP封装可以让开发者将网页应用快速地转化为原生应用,提高应用的用户体验和安全性。在线APP封装的原理是将网页应用通过WebView加载到原生APP中,同时通过JavaScrip</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-ios-ying-yong-da-bao-4492.html">ios应用打包</a> <div class=summary>iOS应用打包是将开发者所开发的iOS应用程序打包成一个IPA文件的过程。IPA文件是iOS应用程序的安装包,只有将应用程序打包成IPA文件才能够在iOS设备上进行安装和使用。本文将详细介绍iOS应用打包的原理以及打包的步骤。一、iOS应用打包的原理iOS</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-android-xiang-mu-da-bao-cheng-apk-4167.html">android项目打包成apk</a> <div class=summary>Android项目打包成APK是将开发者编写的Android应用程序打包成一个Android安装包的过程。在这个过程中,将应用程序的所有文件和资源打包成一个单独的文件,以便用户可以轻松地安装和使用应用程序。打包APK的过程可以分为以下几个步骤:1. 编写代</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-weex-da-bao-ios-4134.html">weex打包ios</a> <div class=summary>Weex是一个跨平台的开源移动应用框架,它可以让开发者使用Vue.js语法来构建iOS、Android和Web应用程序。Weex的打包过程与传统的iOS应用程序打包过程有所不同,本文将介绍Weex打包iOS的原理和详细步骤。Weex打包iOS的原理Weex</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-pjsipios-da-bao-4104.html">pjsipios打包</a> <div class=summary>PJSIP是一个开源的SIP协议栈,可以用于实现VoIP应用程序。PJSIP提供了一套API,可以在iOS平台上使用Objective-C和Swift编写VoIP客户端应用程序。PJSIP for iOS是PJSIP的iOS版本,提供了一个静态库和一个Xc</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/08055934967.jpg"/> <div class=content> <a class=title href="info@-shou-ji-da-bao-apk-gong-ju-an-zhuo-ban-3495.html">手机打包apk工具安卓版</a> <div class=summary>在安卓开发中,打包apk是一个非常重要的步骤。apk是安卓系统上的应用程序包,包含了应用程序的所有文件、资源和代码。在开发完成后,需要将应用程序打包成apk格式,才能在安卓设备上进行安装和使用。本文将介绍一些常用的手机打包apk工具。一、Android S</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-apkpureapk-3426.html">apkpureapk</a> <div class=summary>APKPure是一个第三方的安卓应用市场,用户可以在这个市场中下载各种应用程序。与其他应用市场不同的是,APKPure的应用程序都是以APK文件的形式提供,用户可以通过下载这些文件来安装应用程序。APKPure的原理是通过从官方应用商店中获取应用程序的AP</div> <div class=date>2023-04-06</div> </div> </div> </div> </div> <div class="topMs" style="height:auto;background:#fff;"></div> <style> .footer {background: #F9F9FA;height: auto;width: 100%;clear: both;} .link_list1 {width: 100%;clear: both;border-top: 1px solid #fff;margin-top: 9px;} .fflist {position: relative;height: auto;} .fflist-title {position: absolute;left: 0;text-align: left;line-height: 25px;font-size: 13px;color: #6a7582;letter-spacing: .43px;padding-right: 20px;font-weight: 700;} .fflist-wrap {zoom: 1;padding-left: 70px;width: 100%;box-sizing: border-box;} .fflist-link{display: inline-block;width: 10%;text-align: left;line-height: 25px;font-size: 12px;color: #6a7582;letter-spacing: .43px;text-decoration: none;} </style> <div class="footer"> <div class="width_normal"> <ul class="foot_ul"> <li class="foot_title">一门APP</li> <li><a href="https://www.yimenapp.com/aboutus.html">关于我们 ›</a></li> <li><a href="https://www.yimenapp.com/info/shi-yong-tiao-kuan-258.html">使用条款 ›</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">隐私条款 ›</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">企业文化 ›</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">企业历程 ›</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">主要产品</li> <li><a href="https://www.yimenapp.com/more.html">一门APP ›</a></li> <li><a href="https://www.yimenapp.com/exe.html">一门应用 ›</a></li> <li><a href="https://www.yimenapp.com/shop.cshtml">一门云商城 ›</a></li> <li><a href="https://www.yimenapp.com/jiaocheng.html">使用教程 ›</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">增值服务</li> <li><a href="https://www.yimenapp.com/iosup.html">苹果上架 ›</a></li> <li><a href="https://www.yimenapp.com/androidup.html">安卓上架 ›</a></li> <li><a href="https://www.yimenapp.com/appruanzhu.html">软著申请 ›</a></li> <li><a href="https://bbs.yimenapp.com/forum-151-1.html">应用内测 ›</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">开放平台</li> <li><a href="/module">组件模块 ›</a></li> <li><a href="doc/demo.cshtml">APP Demo ›</a></li> <li><a href="/desktop/doc/#/api/variable">PC Demo ›</a></li> <li><a href="https://bbs.yimenapp.com">开发者社区 ›</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">语言版本</li> <li><a href="/" onclick='document.cookie="_ymlang=zh"'>简体中文 ›</a></li> <li><a href="/" onclick='document.cookie="_ymlang=zh-tw"'>繁体中文 ›</a></li> <li><a href="/" onclick='document.cookie="_ymlang=en"'>英文 ›</a></li> </ul> <ul class="foot_ul contactUs"> <li class="foot_title"><a href="aboutus.html">联系我们</a></li> <li>企业电话: 4001658508</li> <li>企业QQ: 4001658508</li> <li>座机: 028-65787095</li> <li>邮箱: dev@yimenapp.com</li> <li>地址: 四川省成都市高新区剑南大道1537号3栋4楼</li> </ul> <div class="link_list1"> <div class="fflist"> <span class="fflist-title">一门产品</span> <div class="fflist-wrap"> <a class="fflist-link" href="/more.html" target="_blank">APP打包</a> <a class="fflist-link" href="https://sapp.yimenapp.com" target="_blank">小程序打包</a> <a class="fflist-link" href="//exe.yimenapp.com" target="_blank">EXE打包</a> <a class="fflist-link" href="/shop.html" target="_blank">云商城</a> <a class="fflist-link" href="/discuz.html" target="_blank">Discuz app</a> <a class="fflist-link" href="/wordpress.html" target="_blank">Wordpress app</a> <a class="fflist-link" href="/webclip.html" target="_blank">Webclip</a> <a class="fflist-link" href="/softpage.html" target="_blank">APP软著申请</a> <a class="fflist-link" href="/iosup.html" target="_blank">APP上架</a> <a class="fflist-link" href="/ssl.html" target="_blank">SSL加密</a> <a class="fflist-link" href="/iosmianqian.html" target="_blank">IOS免签版</a> <a class="fflist-link" href="/vueapp.html" target="_blank">vue做APP</a> <a class="fflist-link" href="/appfenfa.html" target="_blank">APP分发</a> <a class="fflist-link" href="https://platform.yimenapp.com/ioszhengshu.html" target="_blank">IOS证书制作工具</a> <a class="fflist-link" href="https://zaixian.yimenapp.com/androidzhengshu.html" target="_blank">安卓证书制作工具</a> <a class="fflist-link" href="https://tool.yimenapp.com/chongqianming.html" target="_blank">安卓重签名工具</a> <a class="fflist-link" href="https://www.yimenapp.com/special.html" target="_blank">更多</a> </div> </div> <div class="fflist"> <span class="fflist-title">一门文档</span> <div class="fflist-wrap"> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/zixun/" target="_blank">行业技术</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/androidinfo/" target="_blank">安卓开发</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/iosinfo/" target="_blank">IOS开发</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/www/" target="_blank">互联网</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/windows/" target="_blank">Windows</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/macos/" target="_blank">Macos</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/kaifangpingtai/" target="_blank">开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/jssdk/" target="_blank">JS-SDK</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/appcs/" target="_blank">测试分发</a> </div> </div> <div class="fflist"> <span class="fflist-title">三方平台</span> <div class="fflist-wrap"> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/hwopen/" target="_blank">华为开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/oppokfpt/" target="_blank">OPPO开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/vivokfpt/" target="_blank">VIVO开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/xiaomikfpt/" target="_blank">小米开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/meizukfpt/" target="_blank">魅族开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/weixinopen/" target="_blank">微信开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/zfbopen/" target="_blank">支付宝开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/baiduopen/" target="_blank">百度开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/qqopen/" target="_blank">腾讯开放平台</a> </div> </div> <div class="fflist"> <span class="fflist-title">推荐模块</span> <div class="fflist-wrap"> <a class="fflist-link" href="/module/yuan-sheng-biao-ti-lan-1.html" target="_blank">原生标题栏</a> <a class="fflist-link" href="/module/sao-yi-sao-8.html" target="_blank">扫一扫</a> <a class="fflist-link" href="/module/an-gao-qi-dong-bing-32.html" target="_blank">广告启动屏</a> <a class="fflist-link" href="/module/wei-xin-fen-xiang-33.html" target="_blank">微信分享</a> <a class="fflist-link" href="/module/ce-bian-lan-52.html" target="_blank">侧边栏</a> <a class="fflist-link" href="/module/AppsFlyer--tong-ji-152.html" target="_blank">AppsFlyer统计</a> <a class="fflist-link" href="/module/zhi-fu-bao-zhi-fu-37.html" target="_blank">支付宝支付</a> <a class="fflist-link" href="/module/X5-nei-he-20.html" target="_blank">X5内核</a> <a class="fflist-link" href="/module/chuan-shan-jia-an-gao-90.html" target="_blank">穿山甲广告</a> <a class="fflist-link" href="/module/liu-lan-qi-UA-13.html" target="_blank">浏览器UA</a> <a class="fflist-link" href="/module/iOS-nei-gou-30.html" target="_blank">IOS内购</a> <a class="fflist-link" href="/module/tuo-luo-yi-59.html" target="_blank">陀螺仪</a> <a class="fflist-link" href="/module/ji-shi-tong-xun-64.html" target="_blank">融云IM</a> <a class="fflist-link" href="/module/IDFA--an-gao-biao-shi-fu-75.html" target="_blank">IDFA广告标识</a> <a class="fflist-link" href="/module/IMEIOAID--biao-shi-74.html" target="_blank">IMEI/OAID</a> <a class="fflist-link" href="/module/ge-tui-tui-song-39.html" target="_blank">个推推送</a> <a class="fflist-link" href="/module/gao-de-ding-wei-130.html" target="_blank">高德定位</a> <a class="fflist-link" href="/module/wei-xin-deng-lu-11.html" target="_blank">微信登录</a> </div> </div> <div style="text-align:center;padding-top:2em;line-height:2.2em"><a href="/jiage-512.html">app混淆打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-543.html">app打包构建</a> <span style="color:#ddd"> | </span> <a href="/jiage-585.html">app制作打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-760.html">打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-797.html">网页直接打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-911.html">快速合成app页面</a> <span style="color:#ddd"> | </span> <a href="/jiage-1080.html">前端打包成apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1224.html">网站打包生成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1232.html">ios项目打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1433.html">ios通过udid打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1536.html">h5在线打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1629.html">安卓打包网址为apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1683.html">打包网页app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1833.html">php打包发布</a> <span style="color:#ddd"> | </span> <a href="/jiage-2114.html">apowermirror打包ipa</a> <span style="color:#ddd"> | </span> <a href="/jiage-2358.html">ios打包测试推送</a> <span style="color:#ddd"> | </span> <a href="/jiage-2483.html">app在线制作一键生成</a> <span style="color:#ddd"> | </span> <a href="/jiage-2567.html">安卓自动打包</a></div> <div class="link_list"> <span>友情链接:</span> <a href="https://www.yimenapp.com">APP开发</a> <a href="https://bbs.yimenapp.com">APP开发社区</a> <a href="http://www.anzhuoe.cn">安卓上架</a> <a href="https://www.yimenapp.net">APP打包</a> <a href="http://app.applebyme.cn">APP生成</a> <a href="http://www.yimenapp.cn">APP封装</a> <a href="http://www.uapp.club">webclip</a><a href="http://www.yizhanapp.com">驿站APP</a> <a href="http://discuz.yizhanapp.com">discuz做APP</a> <a href="http://www.applebyme.cn/">苹果APP上架</a> <a href="https://www.yimenapp.com/wordpress.html">wordpress app</a><a href="https://www.yimenssl.com/">低价ssl</a> <div style="clear:both;"></div> </div> </div> </div> <div class="bottom"> <div class="width_normal"> <span>©2015-2021 成都七扇门科技有限公司 yimenapp.com</span> <span><img src="//cdn.myapp.ltd/ag/35/img/foot_1.png"/> <a href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=51019002001185">川公网安备 51019002001185号</a></span> <span><a href="https://beian.miit.gov.cn/">蜀ICP备17005078号-4</a></span> <span><a href="https://v.yunaq.com/certificate?domain=www.yimenapp.com&from=label&code=90030"><img src="//cdn.myapp.ltd/ag/35/img/foot_2.png" class="bot_img"/></a></span> <div style="clear:both;"></div> </div> </div> <!-- WPA start --> <script id="qd2852153749712b2d3cc16651c050fa3081fba21c66" src="https://wp.qiye.qq.com/qidian/2852153749/712b2d3cc16651c050fa3081fba21c66" charset="utf-8" async defer></script> <!-- WPA end --> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?3da5a313e099b629a89e99f0ef41896c"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?acb5b28fbdbef6aadca2373f2329a647"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> /*推广联盟*/ (function () { var m = /un=(\d+)/.exec(location.href.toLowerCase()); if (!m) return; var d = new Date(); d.setTime(d.getTime() + 12 * 3600 * 1000); document.cookie = "un=" + m[1] + ";path=/;expires=" + d.toGMTString(); })(); </script> <link rel=stylesheet href=https://cdn.staticfile.net/highlight.js/11.9.0/styles/vs2015.min.css /> <style>code[lang]::before{content:attr(lang);display:block;text-align:right;margin-bottom:8px;font-weight:bold;text-transform:capitalize}</style> <script src=https://cdn.staticfile.net/highlight.js/11.9.0/highlight.min.js></script> <script>hljs.highlightAll()</script></body> </html>