Giter Site home page Giter Site logo

examine928 / app-update-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itlwy/app-update-server

0.0 0.0 0.0 4.36 MB

This library cooperates with another library of "AppSmartUpdate", and it provides update service

License: Apache License 2.0

CSS 2.82% HTML 14.23% JavaScript 82.95%

app-update-server's Introduction

App-Update-Server

​ This library cooperates with another library of "AppSmartUpdate", and it provides update service/这个Nodejs服务例子主要配合APK自动更新库 :AppSmartUpdate的使用

目录结构

src

-public

	-app

		-UpdateManifest.json

	-index.css

	-index.html

	-index.js

-utils

	-file_utils.js

-publish_task.js

-server.js

-uploader.js

安装

​ 下载源码后,终端切换到项目根目录,执行:

npm install

运行

npm run start

注意:如下server.js文件里的代码片段的baseURLPath字段的注释

 var PublishTask = new publish_task_func({
                manifest_file,
                rootPath,
                // 此属性设置时,生成的 UpdateManifest.json里的所有文件url会加上此前缀,否则用相对于UpdateManifest的路径来表示
                // baseURLPath:'http://192.168.2.107:8000/app'  
            });

发布应用

服务运行起来后,访问:http://<本机IP>:8000,即可畅快使用发布功能le~

首次使用

可以看到如下图1

图1

​ 首次使用发布功能时,版本号均为0,此时只需要设置首次发布的版本号即可,"强制更新"和"最低差分版本"会自动同步"发布版本号"。即,首次发布如下图:

图2

非首次使用

图3

​ 可根据需要设置强制更新版本号和最低差分版本号,含义详见 APK自动更新库 :AppSmartUpdate

app-update-server's People

Contributors

itlwy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.