rcs5.0 commit

This commit is contained in:
wangxinfei
2025-05-19 17:29:51 +08:00
commit e8af49b0f5
720 changed files with 175022 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
/*
* @Date: 2018-11-14 11:57:33
* @Author: Scm <chengqiuhua@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: chengqiuhua@erayt.com.
*/
module.exports = function (grunt) {
const config = require('../../utils/config')(grunt);
let copyTasks = require('../utils/index')(config, 'electron');
grunt.initConfig({
config: config,
meta: {
base: "node_modules/@erayt",
dest: './app',
project: `../../../packages/${config.projectName}-pc/`
},
copy: Object.assign({
config: {
expand: true,
cwd:'../../../config/electron',
src: '*',
dest: '<%= meta.dest %>'
}
}, copyTasks),
clean: {
dest: ["<%= meta.dest %>/zh_CN/**","<%= meta.dest %>/en/**"],
cache: ["package-lock.json", "yarn.lock"]
}
});
require("time-grunt")(grunt);
// grunt plugins
require( "load-grunt-tasks" )( grunt );
grunt.registerTask("build",["clean","copy"]);
};
+8
View File
@@ -0,0 +1,8 @@
/*
* @Date: 2019-01-28 16:08:04
* @Author: Scm <chengqiuhua@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: chengqiuhua@erayt.com.
*/
// eslint-disable-next-line import/no-extraneous-dependencies
require('@erayt/titanOne-electron');
+15
View File
@@ -0,0 +1,15 @@
{
"name": "@erayt/titanOne-asar-app",
"version": "0.1.0",
"description": "titanOne3.0 base app.asar",
"main": "./main.js",
"license": "MIT",
"dependencies": {
"@erayt/titanOne-electron": "^3.1.12"
},
"author": "SCM <chengqiuhua@erayt.com>",
"scripts": {
"start": "electron ."
},
"devDependencies": {}
}
+23
View File
@@ -0,0 +1,23 @@
{
"name": "@erayt/titanOne3.5-package-app",
"version": "0.2.0",
"description": "titanOne3.5多应用框架模块打包app.asar工具.",
"scripts": {
"build": "npm run compile:electron && npm run compile:asar",
"compile:asar": "easar pack app ../../../dist/electron/app.asar --unpack \"{init,version}.json\"",
"compile:electron": "grunt build"
},
"author": "SCM",
"license": "ISC",
"dependencies": {
"@erayt/titanOne-dll": "^3.0.0",
"@erayt/titanOne3.0-electron-index": "^3.0.0",
"@erayt/titanOne3.0-electron-login": "^3.0.0",
"grunt": "^1.0.1",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-copy": "~0.8.0",
"load-grunt-tasks": "^4.0.0",
"time-grunt": "^1.4.0"
},
"devDependencies": {}
}