Skip to content

Commit

Permalink
update windows icon and hide black console
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Sep 5, 2019
1 parent 792ff75 commit c533aad
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 454 deletions.
2 changes: 1 addition & 1 deletion 3rd/lclipboard
Submodule lclipboard updated 1 files
+3 −1 lclipboard.c
2 changes: 1 addition & 1 deletion 3rd/ltray
Submodule ltray updated 1 files
+52 −4 ltray.c
11 changes: 9 additions & 2 deletions platform/win/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ DEF= /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" \
OPENSSL_LIB_PATH=$(OPENSSL_PATH)\lib
CFLAGS=$(LUA_INC) /c /O2 /Ot /MT /W3 /nologo $(DEF)
LDFLAGS= /NOLOGO \
/SUBSYSTEM:windows /ENTRY:mainCRTStartup \
/LIBPATH:"$(LUA_LIB_PATH)" $(LUA_LIB) \
/LIBPATH:"$(OPENSSL_LIB_PATH)" \
user32.lib shell32.lib ws2_32.lib \
Expand Down Expand Up @@ -44,12 +45,18 @@ copas\limit.lua \
copas\smtp.lua \
oclip\cacert.lua \
oclip\cafile.lua \
oclip\clipboard_helper.lua \
oclip\clipboard_linux.lua \
oclip\config.lua \
oclip\genicon.lua \
oclip\icon.lua \
oclip\icon_bytes.lua \
oclip\main.lua \
oclip\oclip_cmd.lua \
oclip\rpc.lua \
oclip\tools.lua \
oclip\icon.lua \
oclip\icon_bytes.lua \
oclip\tray_helper.lua \
oclip\tray_linux.lua \
socket\ftp.lua \
socket\headers.lua \
socket\http.lua \
Expand Down
4 changes: 2 additions & 2 deletions src/cacert.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
return [[
return [[
##
## Bundle of CA Root Certificates
##
Expand Down Expand Up @@ -3506,4 +3506,4 @@ hcErulWuBurQB7Lcq9CClnXO0lD+mefPL5/ndtFhKvshuzHQqp9HpLIiyhY6UFfEW0NnxWViA0kB
60PZ2Pierc+xYw5F9KBaLJstxabArahH9CdMOA0uG0k7UvToiIMrVCjU8jVStDKDYmlkDJGcn5fq
dBb9HxEGmpv0
-----END CERTIFICATE-----
]]
]]
Binary file modified src/icon.ico
Binary file not shown.
539 changes: 99 additions & 440 deletions src/icon_bytes.lua

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions src/main.lua
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
local oclip_cmd = require "oclip.oclip_cmd"
local oclip_cmd = require 'oclip.oclip_cmd'
if oclip_cmd then
return
return
end

package.path='../share/lua/5.3/?.lua;?.lua;;'
package.cpath='../lib/lua/5.3/?.so;;'
package.path = '../share/lua/5.3/?.lua;?.lua;;'
package.cpath = '../lib/lua/5.3/?.so;?.dll;'

local copas = require 'copas'
local ws = require('websocket')
local ws = require 'websocket'
local ws_client = ws.client.copas({timeout = 5})
local rpc = require 'oclip.rpc'
local cfg = require 'oclip.config'
local cafile = require 'oclip.cafile'
local icon = require 'oclip.icon'
local tools = require 'oclip.tools'


local handler

local function traceback(msg)
Expand Down
4 changes: 2 additions & 2 deletions src/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ local function unset_auto_startup()
os.remove(link_file_name)
end

function _M.open_config()
local function open_config()
local fpath = cfg.get_config_file_path()
local vbs_str = string.format([[Set oShell = CreateObject("WScript.Shell")
oShell.Run "notepad %s", 1]], fpath)
Expand Down Expand Up @@ -135,7 +135,7 @@ end

local function cb_open_config()
print('open config file')
tools.open_config()
open_config()
end

local function cb_exit()
Expand Down

0 comments on commit c533aad

Please sign in to comment.