Skip to content

Commit

Permalink
[BUILD] Set icons
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyTy committed Apr 2, 2022
1 parent 6cda302 commit cabe45d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
Binary file added assets/tea.ico
Binary file not shown.
1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ IF %ERRORLEVEL% NEQ 0 (
goto somethingbad
)
echo [Success]
ATTRIB +S .
::node build.js vbox
::node tools\vbox.js
::node tools\listen.js
Expand Down
7 changes: 5 additions & 2 deletions build/main.hexa
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ for task in tasks {
case 'init':
{
let folder = slash(config.tempFolder + '\\tofita')
if !fs.existsSync(folder) {
if not fs.existsSync(folder) {
fs.mkdirSync(folder)
}

// Cleanup
deleteFolderRecursive(folder, noRemoveSelf: true)
fs.copyFileSync('assets\\tea.ico', folder + '\\icon.ico')
fs.copyFileSync('desktop.ini', folder + '\\desktop.ini')
require('child_process').execSync('cmd /c ATTRIB +S ' + folder, { stdio: 'inherit' })

// Create directory tofita/iso/EFI/BOOT/
let dirs = [
Expand All @@ -89,7 +92,7 @@ for task in tasks {
var path = config.tempFolder
for dir in dirs {
path += dir
if !fs.existsSync(path) {
if not fs.existsSync(path) {
fs.mkdirSync(path)
}
}
Expand Down
9 changes: 9 additions & 0 deletions desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[.ShellClassInfo]
IconFile=icon.ico
IconIndex=0
InfoTip=Tofita
IconResource=icon.ico,0
[ViewState]
Mode=
Vid=
FolderType=Generic
Binary file added icon.ico
Binary file not shown.

0 comments on commit cabe45d

Please sign in to comment.