1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 05:10:05 +02:00
This commit is contained in:
s2
2018-05-18 17:26:33 +02:00
parent 0ea0853165
commit 2c5b23c10e
1125 changed files with 118732 additions and 1 deletions

20
app/node_modules/rcedit/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2013 GitHub, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

42
app/node_modules/rcedit/README.md generated vendored Normal file
View File

@@ -0,0 +1,42 @@
# node-rcedit
[![Travis Build Status](https://travis-ci.org/electron/node-rcedit.svg?branch=master)](https://travis-ci.org/electron/node-rcedit)
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/m880ovvfwukowyne/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/node-rcedit/branch/master)
Node module to edit resources of Windows executables.
## Building
* Clone the repository
* Run `npm install`
* Run `npm test` to run the tests
## Docs
```js
var rcedit = require('rcedit')
```
On platforms other than Windows, you will need to have [Wine](http://winehq.org)
1.6 or later installed and in the system path.
### `rcedit(exePath, options, callback)`
`exePath` is the path to the Windows executable to be modified.
`options` is an object that can contain following fields:
* `version-string` - An object containing properties to change the `exePath`'s
version string.
* `file-version` - File's version to change to.
* `product-version` - Product's version to change to.
* `icon` - Path to the icon file (`.ico`) to set as the `exePath`'s default icon.
* `requested-execution-level` - Requested execution level to change to, must be
either `asInvoker`, `highestAvailable`, or `requireAdministrator`. See
[here](https://msdn.microsoft.com/en-us/library/6ad1fshk.aspx#Anchor_9) for
more details.
* `application-manifest` - String path to a local manifest file to use.
See [here](https://msdn.microsoft.com/en-us/library/windows/desktop/aa374191.aspx)
for more details.
`callback` is the `Function` called when the command completes. The function
signature is `function (error)`.

BIN
app/node_modules/rcedit/bin/rcedit.exe generated vendored Normal file

Binary file not shown.

71
app/node_modules/rcedit/lib/rcedit.js generated vendored Normal file
View File

@@ -0,0 +1,71 @@
var path = require('path')
var spawn = require('child_process').spawn
var pairSettings = ['version-string']
var singleSettings = ['file-version', 'product-version', 'icon', 'requested-execution-level']
var noPrefixSettings = ['application-manifest']
module.exports = function (exe, options, callback) {
var rcedit = path.resolve(__dirname, '..', 'bin', 'rcedit.exe')
var args = [exe]
pairSettings.forEach(function (name) {
if (options[name] != null) {
for (var key in options[name]) {
var value = options[name][key]
args.push('--set-' + name)
args.push(key)
args.push(value)
}
}
})
singleSettings.forEach(function (name) {
if (options[name] != null) {
args.push('--set-' + name)
args.push(options[name])
}
})
noPrefixSettings.forEach(function (name) {
if (options[name] != null) {
args.push('--' + name)
args.push(options[name])
}
})
var spawnOptions = {}
spawnOptions.env = Object.create(process.env)
if (process.platform !== 'win32') {
args.unshift(rcedit)
rcedit = 'wine'
// Supress fixme: stderr log messages
spawnOptions.env.WINEDEBUG = '-all'
}
var child = spawn(rcedit, args, spawnOptions)
var stderr = ''
var error = null
child.on('error', function (err) {
if (error == null) error = err
})
child.stderr.on('data', function (data) {
stderr += data
})
child.on('close', function (code) {
if (error != null) {
callback(error)
} else if (code === 0) {
callback()
} else {
var message = 'rcedit.exe failed with exit code ' + code
stderr = stderr.trim()
if (stderr) message += '. ' + stderr
callback(new Error(message))
}
})
}

51
app/node_modules/rcedit/package.json generated vendored Normal file
View File

@@ -0,0 +1,51 @@
{
"_from": "rcedit@^1.0.0",
"_id": "rcedit@1.1.0",
"_inBundle": false,
"_integrity": "sha512-JkXJ0IrUcdupLoIx6gE4YcFaMVSGtu7kQf4NJoDJUnfBZGuATmJ2Yal2v55KTltp+WV8dGr7A0RtOzx6jmtM6Q==",
"_location": "/rcedit",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "rcedit@^1.0.0",
"name": "rcedit",
"escapedName": "rcedit",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/electron-packager"
],
"_resolved": "https://registry.npmjs.org/rcedit/-/rcedit-1.1.0.tgz",
"_shasum": "ae21c28d4efdd78e95fcab7309a5dd084920b16a",
"_spec": "rcedit@^1.0.0",
"_where": "E:\\projects\\p\\gitlit\\app\\node_modules\\electron-packager",
"bugs": {
"url": "https://github.com/electron/node-rcedit/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Node module to edit resources of exe",
"devDependencies": {
"got": "^6.7.1",
"mocha": "^3.0.2",
"rcinfo": "^0.1.3",
"standard": "^7.1.2",
"temp": "^0.8.3"
},
"homepage": "https://github.com/electron/node-rcedit#readme",
"license": "MIT",
"main": "lib/rcedit.js",
"name": "rcedit",
"repository": {
"type": "git",
"url": "git+https://github.com/electron/node-rcedit.git"
},
"scripts": {
"lint": "standard",
"test": "mocha test/*.js && npm run lint"
},
"version": "1.1.0"
}