Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

License

Notifications You must be signed in to change notification settings

itlwy/App-Update-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors