Skip to content

Commit 91cda56

Browse files
Merge pull request #12 from ConvertAPI/develop
GUI merge from Develop to Master
2 parents 02c0d1b + 27c9022 commit 91cda56

76 files changed

Lines changed: 10581 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@
1111
/Cli/Properties
1212
/Lib/bin/Debug/netcoreapp3.1
1313
/Lib/obj
14+
/GUI/.vs
15+
/GUI/node_modules
16+
/GUI/dist
17+
/GUI/release-builds
18+
/GUI/windows_installer
19+
/GUI/config.json
20+
WinConfig/bin
21+
WinConfig/obj

GUI/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Electron ConvertAPI workflows Desktop App
2+
3+
This is a cross platform ConvertAPI workflows desktop application built on electron
4+
5+
### Version
6+
1.0.0
7+
8+
## Usage
9+
10+
### Installation
11+
12+
Install the dependencies
13+
14+
```sh
15+
$ npm install
16+
```
17+
18+
### Serve
19+
To run electron
20+
21+
```sh
22+
$ npm start
23+
```
24+
25+
### To Package & Build
26+
27+
For Windows
28+
29+
```sh
30+
$ npm run package-win
31+
```
32+
33+
For Mac
34+
35+
```sh
36+
$ npm run package-mac
37+
```
38+
39+
For Linux
40+
41+
```sh
42+
$ npm run package-linux
43+
```

GUI/build-installer.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const { MSICreator } = require('electron-wix-msi');
2+
const path = require('path');
3+
4+
const APP_DIR = path.resolve(__dirname, './release-builds/convert-api-workflow-win32-x64');
5+
const OUT_DIR = path.resolve(__dirname, './windows_installer');
6+
7+
const msiCreator = new MSICreator({
8+
appDirectory: APP_DIR,
9+
outputDirectory: OUT_DIR,
10+
description: 'The ConvertAPI Automator is a batch document converter software for Windows, macOS, and Linux for converting various files from one format to another.',
11+
exe: 'convert-api-workflow.exe',
12+
name: 'ConvertAPI workflows',
13+
manufacturer: 'UAB Baltsoft',
14+
version: '1.0.2',
15+
appIconPath: path.resolve(__dirname, './assets/icons/win/icon.ico'),
16+
ui: {
17+
chooseDirectory: true
18+
},
19+
});
20+
21+
msiCreator.create().then(function(){
22+
msiCreator.compile();
23+
});

GUI/build/icons/mac/icon.icns

93.9 KB
Binary file not shown.

GUI/build/icons/png/icon.png

931 Bytes
Loading

GUI/build/icons/png/icon@2x.png

1.38 KB
Loading

GUI/build/icons/png/icon@3x.png

7.72 KB
Loading

GUI/build/icons/png/icon@4x.png

31.8 KB
Loading

GUI/build/icons/win/icon.ico

10.1 KB
Binary file not shown.

GUI/package.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"name": "convertapi-document-converter",
3+
"version": "1.0.3",
4+
"description": "File conversion workflow desktop app",
5+
"main": "src/main.js",
6+
"author": "UAB Baltsoft",
7+
"license": "MIT",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/ConvertAPI/convertapi-automator/GUI"
11+
},
12+
"scripts": {
13+
"start": "electron .",
14+
"scss": "sass --style=compressed --watch assets/css/scss:assets/css",
15+
"pack": "electron-builder --dir",
16+
"dist": "electron-builder -p onTag",
17+
"publish": "electron-builder --win -p always"
18+
},
19+
"build": {
20+
"productName": "ConvertAPI Document Converter",
21+
"appId": "convertapi-document-converter",
22+
"files": [
23+
"src/**/*",
24+
"node_modules/**/*",
25+
"package.json",
26+
"build"
27+
],
28+
"directories": {
29+
"buildResources": "build"
30+
},
31+
"mac": {
32+
"category": "public.app-category.utilities",
33+
"target": "dmg"
34+
},
35+
"linux": {
36+
"target": "AppImage"
37+
},
38+
"win": {
39+
"target": [
40+
"nsis"
41+
],
42+
"icon": "build/icons/win/icon.ico",
43+
"publish": [
44+
"github"
45+
]
46+
},
47+
"nsis": {
48+
"installerIcon": "build/icons/win/icon.ico",
49+
"installerHeaderIcon": "build/icons/win/icon.ico",
50+
"deleteAppDataOnUninstall": true
51+
},
52+
"extends": null,
53+
"publish": [{
54+
"provider": "github",
55+
"owner": "iffy",
56+
"repo": "electron-updater-example"
57+
}]
58+
},
59+
"dependencies": {
60+
"electron-log": "^4.3.2",
61+
"electron-updater": "^4.3.9"
62+
},
63+
"devDependencies": {
64+
"electron": "^12.2.2",
65+
"electron-builder": "^22.13.1",
66+
"sass": "^1.32.8"
67+
}
68+
}

0 commit comments

Comments
 (0)