Skip to content

Commit 74c50d0

Browse files
author
Zhicheng Chen
committed
init
1 parent 94cb558 commit 74c50d0

17 files changed

+3577
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
node_modules/
3+
release-builds/
4+
package-lock.json

LICENSE.txt

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
The MIT License
2+
3+
Copyright © 2012 Kir Belevich
4+
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the "Software"), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.
25+
26+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
27+
28+
Лицензия MIT
29+
30+
Copyright © 2012 Кир Белевич
31+
32+
Данная лицензия разрешает лицам, получившим копию данного
33+
программного обеспечения и сопутствующей документации
34+
(в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно
35+
использовать Программное Обеспечение без ограничений, включая
36+
неограниченное право на использование, копирование, изменение,
37+
добавление, публикацию, распространение, сублицензирование
38+
и/или продажу копий Программного Обеспечения, также как и лицам,
39+
которым предоставляется данное Программное Обеспечение,
40+
при соблюдении следующих условий:
41+
42+
Указанное выше уведомление об авторском праве и данные условия
43+
должны быть включены во все копии или значимые части данного
44+
Программного Обеспечения.
45+
46+
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ»,
47+
БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ,
48+
ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ,
49+
СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ
50+
ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ
51+
ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ
52+
ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ,
53+
ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ
54+
ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
55+
ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.

README.md

+46
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,48 @@
11
# tinysvg
2+
23
GUI for SVGO inspire by [svgomg](https://github.com/jakearchibald/svgomg)
4+
5+
![Mac OSX X screenshot](https://raw.github.com/ZhichengChen/tinysvg/master/screenshots/1.png)  ![Mac OSX X screenshot](https://raw.github.com/ZhichengChen/tinysvg//master/screenshots/2.png)
6+
7+
# Running locally
8+
9+
Install dependencies:
10+
11+
```
12+
yarn install
13+
```
14+
15+
Run local:
16+
17+
```
18+
yarn start
19+
```
20+
21+
# Build
22+
23+
## build mac
24+
25+
```
26+
yarn package-mac
27+
yarn package-mac-dmg
28+
```
29+
## build win
30+
31+
install Xquart https://www.xquartz.org/
32+
33+
install wine https://www.winehq.org/
34+
35+
add to path https://wiki.winehq.org/MacOS_FAQ#How_to_launch_wine_from_terminal_instead_of_the_wine_application.3F
36+
37+
```
38+
yarn package-win
39+
```
40+
41+
## build linux
42+
43+
```
44+
yarn package-linux
45+
```
46+
# License and copyrights
47+
48+
This software is released under the terms of the [MIT license](https://github.com/ZhichengChen/tinysvg/blob/master/LICENSE).

build-win-installer.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// var electronInstaller = require('electron-winstaller');
2+
// resultPromise = electronInstaller.createWindowsInstaller({
3+
// appDirectory: './release-builds/tinysvg-win32-ia32/',
4+
// outputDirectory: './release-builds/tinysvg-win32-ia32/',
5+
// authors: 'http://www.chenzhicheng.com',
6+
// exe: 'tinysvg.exe'
7+
// });
8+
9+
// resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
10+
var MSICreator = require('electron-wix-msi').MSICreator;
11+
12+
// Step 1: Instantiate the MSICreator
13+
const msiCreator = new MSICreator({
14+
appDirectory: './release-builds/tinysvg-win32-ia32/',
15+
description: 'GUI for SVGO inspire by https://github.com/jakearchibald/svgomg',
16+
exe: 'tinysvg',
17+
name: 'tinysvg',
18+
manufacturer: 'http://www.chenzhicheng.com',
19+
version: '1.0.0',
20+
outputDirectory: './release-builds/tinysvg-win32-ia32/'
21+
});
22+
23+
create();
24+
25+
async function create() {
26+
// Step 2: Create a .wxs template file
27+
await msiCreator.create();
28+
29+
// Step 3: Compile the template to a .msi file
30+
await msiCreator.compile();
31+
}
32+

css/materialize.min.css

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
59.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)