-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c58610
commit 78195e7
Showing
41 changed files
with
2,125 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ node_modules/* | |
/index.js.map | ||
/package-lock.json | ||
/src/electron/package-lock.json | ||
/src/electron/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
{ | ||
"name": "desktop-free-tex-packer", | ||
"version": "0.0.1", | ||
"description": "Desktop free texture packer", | ||
"main": "main.js", | ||
"scripts": { | ||
"start": "electron . --env development", | ||
"start-prod": "electron ." | ||
}, | ||
"keywords": [], | ||
"author": "Alexander Norinchak", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"electron": "^3.0.7" | ||
}, | ||
"dependencies": { | ||
"electron-window-state": "^5.0.3", | ||
"optimist": "^0.6.1", | ||
"tinify": "^1.3.0" | ||
} | ||
"name": "desktop-free-tex-packer", | ||
"version": "0.4.1", | ||
"description": "Desktop free texture packer (beta)", | ||
"main": "main.js", | ||
"scripts": { | ||
"start": "electron . --env development", | ||
"start-prod": "electron .", | ||
"build": "electron-builder && node ./postbuild.js" | ||
}, | ||
"build": { | ||
"appId": "com.free.tex.packer", | ||
"productName": "Free texture packer", | ||
"artifactName": "FreeTexturePacker.${ext}", | ||
"win": { | ||
"target": "nsis", | ||
"icon": "./resources/icons/medium.png" | ||
}, | ||
"directories": { | ||
"output": "../../dist/${os}" | ||
}, | ||
"fileAssociations": { | ||
"ext": "ftpp", | ||
"name": "Free texture packer project" | ||
} | ||
}, | ||
"keywords": [], | ||
"author": "Alexander Norinchak", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"electron": "^3.0.7", | ||
"electron-builder": "^20.38.4" | ||
}, | ||
"dependencies": { | ||
"electron-window-state": "^5.0.3", | ||
"optimist": "^0.6.1", | ||
"tinify": "^1.3.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
let fs = require("fs"); | ||
|
||
function deleteFile(path) { | ||
try {fs.unlinkSync(path)} | ||
catch(e) {} | ||
} | ||
|
||
function deleteFolder(path) { | ||
try { | ||
if (fs.existsSync(path)) { | ||
fs.readdirSync(path).forEach(function (file) { | ||
let curPath = path + "/" + file; | ||
|
||
if (fs.lstatSync(curPath).isDirectory()) { | ||
deleteFolder(curPath); | ||
} else { | ||
fs.unlinkSync(curPath); | ||
} | ||
}); | ||
|
||
fs.rmdirSync(path); | ||
} | ||
} | ||
catch(e) {} | ||
} | ||
|
||
deleteFile("../../dist/builder-effective-config.yaml"); | ||
deleteFile("../../dist/win/FreeTexturePacker.exe.blockmap"); | ||
deleteFolder("../../dist/${os}"); | ||
deleteFolder("../../dist/win/win-unpacked"); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
Desktop free texture packer | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
|
||
<title>Free texture packer - sprite sheets for games and sites</title> | ||
|
||
<meta http-equiv="Content-Type" content="text/html, charset=utf-8" /> | ||
<meta name="description" content="Free texture packer creates sprite sheets for you game or site. Rotation, trimming, multipacking, various export formats (json, xml, css, pixi.js, phaser, cocos2d). Zip support." /> | ||
<meta name="keywords" content="texturepacker, texture, packer, pixi.js, phaser, cocos2d" /> | ||
|
||
<link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon"> | ||
<link rel="icon" href="static/images/favicon.ico" type="image/x-icon"> | ||
|
||
<link rel="stylesheet" type="text/css" href="static/css/index.css"/> | ||
<link rel="stylesheet" type="text/css" href="static/css/color-gray.css"/> | ||
|
||
<script src="static/js/index.js"></script> | ||
|
||
</head> | ||
|
||
<body class="color-900"> | ||
<div id="root" class="main-container"></div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.color-white {color: #ffffff;} | ||
.color-black {color: #000000;} | ||
.color-50 {color: #fafafa;} | ||
.color-100 {color: #f5f5f5;} | ||
.color-200 {color: #eeeeee;} | ||
.color-300 {color: #e0e0e0;} | ||
.color-400 {color: #bdbdbd;} | ||
.color-500 {color: #9e9e9e;} | ||
.color-600 {color: #757575;} | ||
.color-700 {color: #616161;} | ||
.color-800 {color: #424242;} | ||
.color-900 {color: #212121;} | ||
.color-a100 {color: #f5f5f5;} | ||
.color-a200 {color: #eeeeee;} | ||
.color-a400 {color: #bdbdbd;} | ||
.color-a700 {color: #616161;} | ||
.back-white {background-color: #ffffff;} | ||
.back-black {background-color: #000000;} | ||
.back-50 {background-color: #fafafa;} | ||
.back-100 {background-color: #f5f5f5;} | ||
.back-200 {background-color: #eeeeee;} | ||
.back-300 {background-color: #e0e0e0;} | ||
.back-400 {background-color: #bdbdbd;} | ||
.back-500 {background-color: #9e9e9e;} | ||
.back-600 {background-color: #757575;} | ||
.back-700 {background-color: #616161;} | ||
.back-800 {background-color: #424242;} | ||
.back-900 {background-color: #212121;} | ||
.back-a100 {background-color: #f5f5f5;} | ||
.back-a200 {background-color: #eeeeee;} | ||
.back-a400 {background-color: #bdbdbd;} | ||
.back-a700 {background-color: #616161;} | ||
.border-color-white {border-color: #ffffff;} | ||
.border-color-black {border-color: #000000;} | ||
.border-color-50 {border-color: #fafafa;} | ||
.border-color-100 {border-color: #f5f5f5;} | ||
.border-color-200 {border-color: #eeeeee;} | ||
.border-color-300 {border-color: #e0e0e0;} | ||
.border-color-400 {border-color: #bdbdbd;} | ||
.border-color-500 {border-color: #9e9e9e;} | ||
.border-color-600 {border-color: #757575;} | ||
.border-color-700 {border-color: #616161;} | ||
.border-color-800 {border-color: #424242;} | ||
.border-color-900 {border-color: #212121;} | ||
.border-color-a100 {border-color: #f5f5f5;} | ||
.border-color-a200 {border-color: #eeeeee;} | ||
.border-color-a400 {border-color: #bdbdbd;} | ||
.border-color-a700 {border-color: #616161;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.color-white {color: #ffffff;} | ||
.color-black {color: #000000;} | ||
.color-50 {color: #e0f2f1;} | ||
.color-100 {color: #b2dfdb;} | ||
.color-200 {color: #80cbc4;} | ||
.color-300 {color: #4db6ac;} | ||
.color-400 {color: #26a69a;} | ||
.color-500 {color: #009688;} | ||
.color-600 {color: #00897b;} | ||
.color-700 {color: #00796b;} | ||
.color-800 {color: #00695c;} | ||
.color-900 {color: #004d40;} | ||
.color-a100 {color: #a7ffeb;} | ||
.color-a200 {color: #64ffda;} | ||
.color-a400 {color: #1de9b6;} | ||
.color-a700 {color: #00bfa5;} | ||
.back-white {background-color: #ffffff;} | ||
.back-black {background-color: #000000;} | ||
.back-50 {background-color: #e0f2f1;} | ||
.back-100 {background-color: #b2dfdb;} | ||
.back-200 {background-color: #80cbc4;} | ||
.back-300 {background-color: #4db6ac;} | ||
.back-400 {background-color: #26a69a;} | ||
.back-500 {background-color: #009688;} | ||
.back-600 {background-color: #00897b;} | ||
.back-700 {background-color: #00796b;} | ||
.back-800 {background-color: #00695c;} | ||
.back-900 {background-color: #004d40;} | ||
.back-a100 {background-color: #a7ffeb;} | ||
.back-a200 {background-color: #64ffda;} | ||
.back-a400 {background-color: #1de9b6;} | ||
.back-a700 {background-color: #00bfa5;} | ||
.border-color-white {border-color: #ffffff;} | ||
.border-color-black {border-color: #000000;} | ||
.border-color-50 {border-color: #e0f2f1;} | ||
.border-color-100 {border-color: #b2dfdb;} | ||
.border-color-200 {border-color: #80cbc4;} | ||
.border-color-300 {border-color: #4db6ac;} | ||
.border-color-400 {border-color: #26a69a;} | ||
.border-color-500 {border-color: #009688;} | ||
.border-color-600 {border-color: #00897b;} | ||
.border-color-700 {border-color: #00796b;} | ||
.border-color-800 {border-color: #00695c;} | ||
.border-color-900 {border-color: #004d40;} | ||
.border-color-a100 {border-color: #a7ffeb;} | ||
.border-color-a200 {border-color: #64ffda;} | ||
.border-color-a400 {border-color: #1de9b6;} | ||
.border-color-a700 {border-color: #00bfa5;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
html, body { | ||
overflow: hidden; | ||
} | ||
|
||
.main-header { | ||
display: none; | ||
} | ||
|
||
.main-layout { | ||
clear: both; | ||
height: -webkit-calc(100% - 20px); | ||
height: -moz-calc(100% - 20px); | ||
height: -o-calc(100% - 20px); | ||
height: calc(100% - 20px); | ||
box-sizing: border-box; | ||
margin-bottom: 10px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} |
Oops, something went wrong.