惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - life++

multer /busboy 上传文件无法完成回调问题 android studio 2.0 Gradle HttpProxy 设置 javascript的 parseInt 曾经的“陷井”在IE10上不见了,但还是得注意! 无法将类型为“xxxx”的对象强制转换为类型“Microsoft.SharePoint.WebPartPages.WebPart”。 ajax 12301 原因小结 被人忽悠完成的56.com我秀聊天室群发软件 WebDav基于Exchange2003开发邮件收发系统 fiddler 调试 WebDav 引起400错误处理 HTML-JS中的单双引混合处理原则 [笔记]443端口没开放让svn https连接不上 ora10ginstant 精简客户端遇到 system.data.oracleclient 需要 oracle 客户端软件8.1.7 或更高版本 手动调用__doPostBack('xx','') 在IE6, 下留意 javascript:void(0);问题。 让relative容器里的元素的z-index高于body下的遮照层 [原]SWFUpload 在IE9下不显示问题及IE9中模态窗下flash文件选择问题的处理 JQuery-easyui accordion 滚动条在IE6下“丢失”的处理 asp.net Ajax 页中使用jquery-easyui的显示问题处理 equal 与 == 自问自答 胡乱写个 List string 类型排序。
linux系统上搭建egret构建环境(针对5.3.x 版以上)
life++ · 2020-12-25 · via 博客园 - life++

目的

在linux操作系统下,实现对基于egret 5.3.x引擎开发的项目进行构建。

现状

据公开的资料,egret官方只提供windows及Mac下的开发、构建方案。

正文

约束及环境

  • 本文假设读者已经对linux操作系统至少有基本的概念,了解基础的操作命令。
  • 本文实验的操作系统环境为:centos7, root账号。(理论上系统版号号及账号不会影响实验效果。)

建立工作区

mkdir ~/egret-space

准备node环境

已经有node环境可以跳过此步。
从node.js官网上下载合适的node版本,本文实验用的包为 10.23(白鹭官方代码用到的node api应该还是属于node v8.x以前的)

    # 进入工作区
    cd ~/egret-space

    # 下载 node 二进制包
    wget https://nodejs.org/dist/latest-v10.x/node-v10.23.0-linux-x64.tar.xz

    # 解压缩
    tar -vxf node-v10.23.0-linux-x64.tar.xz

    # 为node绑定环境变量
    vi /etc/bashrc

    # 在末属加行
    export PATH=$PATH:/root/egret-space/node-v10.23.0-linux-x64/bin
    # 保存文件后更新
    source ~/.bashrc

    # 查看node版本,验证上述步骤是否是否生效
    node -v

准备windows下的egret环境

准备linux下的egret环境

  • 准备engine目录
    mkdir ~/.egret/engine
    cd ~/.egret/
    npm init
    # 名字输入egret
    # 然后一路回车
  • 添加引擎库

在 /root/.egret/engine中放入具体的egret版本包(包来自于windows里C:\Users\用户名\AppData\Roaming\Egret\Engine\)

  • 为egret绑定环境变量
    vi /etc/bashrc
    # 在末尾加一行
    export EGRET_PATH /root/.egret

    # 编辑node环境那一步中 export PATH那行,在该行末加入 :/root/.egret/engine/5.3.10/tools/bin/
    # 保存刷新
    source ~/.bashrc
    # 验证
    egret info
  • 安装 egret-compiler
    mkdir ~/.config/EgretLauncher/download/EgretCompiler
    # 将 windows 系统里 C:\Users\用户名\AppData\Roaming\EgretLauncher\download\EgretCompiler 下的 egret-compiler-0.0.4.zip
    # 上传到 linux里的 /root/.config/EgretLauncher/download/EgretCompiler 下,并解压缩
    cd  ~/.config/EgretLauncher/download/EgretCompiler
    unzip egret-compiler-0.0.4.zip
  • 安装 egret-library-installer
    npm install @egret/egret-library-installer -g

创建项目验证egret构建与发布

    cd ~/egret-space
    egret create test1

    cd ~/egret-space/test1
    # 构建
    egret build

    # 发布
    egret publish

附:可能遇到的问题

  • 如果有全局安装过egret(npm install egret -g),记得卸载一下(npm uninstall egret -g)