This commit is contained in:
wataru 2023-02-12 17:09:47 +09:00
parent affc55cb24
commit 6be21bf8fc
6 changed files with 0 additions and 6187 deletions

View File

@ -1,6 +0,0 @@
{
"tabWidth": 4,
"useTabs": false,
"semi": true,
"printWidth": 360
}

View File

@ -1,22 +0,0 @@
module.exports = {
packagerConfig: {},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
name: '@electron-forge/maker-deb',
config: {},
},
{
name: '@electron-forge/maker-rpm',
config: {},
},
],
};

View File

@ -1,54 +0,0 @@
const { app, dialog, BrowserWindow } = require('electron')
const parseArgs = require('electron-args');
const cli = parseArgs(`
voice-changer-native-client
Usage
$ <command> <url>
Options
--help show help
--version show version
--url,-u open client
Examples
$ voice-changer-native-client http://localhost:18888/
`, {
alias: {
u: 'url'
},
default: {
url: "http://localhost:18888/"
}
});
console.log(cli.flags);
console.log(cli.flags["url"]);
const url = cli.flags["url"]
const createWindow = () => {
const win = new BrowserWindow({
width: 800,
height: 600
})
app.on('certificate-error', function (event, webContents, url, error, certificate, callback) {
event.preventDefault();
callback(true);
});
win.loadURL(url)
}
app.whenReady().then(() => {
createWindow()
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) createWindow()
})
})
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit()
})

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +0,0 @@
{
"name": "voice-changer-native-client",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"start": "electron-forge start",
"test": "echo \"Error: no test specified\" && exit 1",
"package": "electron-forge package",
"make": "electron-forge make"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@electron-forge/cli": "^6.0.4",
"@electron-forge/maker-deb": "^6.0.4",
"@electron-forge/maker-rpm": "^6.0.4",
"@electron-forge/maker-squirrel": "^6.0.4",
"@electron-forge/maker-zip": "^6.0.4",
"electron": "^22.1.0",
"prettier": "^2.8.3",
"rimraf": "^4.1.1",
"typescript": "^4.9.4"
},
"dependencies": {
"electron-args": "^0.1.0",
"electron-squirrel-startup": "^1.0.0"
}
}

View File

@ -7,9 +7,6 @@
"build:docker": "date +%Y%m%d%H%M%S > docker/dummy && DOCKER_BUILDKIT=1 docker build -f docker/Dockerfile docker/ -t voice-changer",
"build:docker:onnx": "DOCKER_BUILDKIT=1 docker build -f docker_onnx/Dockerfile docker/ -t onnx-converter",
"build:docker:trainer": "date +%Y%m%d%H%M%S > docker_trainer/dummy && DOCKER_BUILDKIT=1 docker build -f docker_trainer/Dockerfile docker_trainer/ -t trainer",
"copy:frontend": "docker run -v `pwd`/frontend/dist:/frontend/dist --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/frontend/dist/* /frontend/dist\"",
"copy:backend": "docker run -v `pwd`/demo:/demo --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/voice-change-service/* /demo/ && rm -rf /demo/MMVC_Trainer/.git && rm -rf /demo/MMVC_Trainer/.gitignore \"",
"create:demo": "run-p copy:frontend copy:backend",
"push:docker": "bash script/001_pushDocker.sh",
"push:docker:trainer": "bash script/002_pushDockerTrainer.sh",
"test": "echo \"Error: no test specified\" && exit 1"