config of installer is modified
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
96
config/build/win/nsis/installer-for-.net45.nsh
Normal file
|
@ -0,0 +1,96 @@
|
|||
Function CheckAndDownloadDotNet45
|
||||
# Let's see if the user has the .NET Framework 4.5 installed on their system or not
|
||||
# Remember: you need Vista SP2 or 7 SP1. It is built in to Windows 8, and not needed
|
||||
# In case you're wondering, running this code on Windows 8 will correctly return is_equal
|
||||
# or is_greater (maybe Microsoft releases .NET 4.5 SP1 for example)
|
||||
|
||||
# Set up our Variables
|
||||
Var /GLOBAL dotNET45IsThere
|
||||
Var /GLOBAL dotNET_CMD_LINE
|
||||
Var /GLOBAL EXIT_CODE
|
||||
|
||||
ReadRegDWORD $dotNET45IsThere HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" "Release"
|
||||
IntCmp $dotNET45IsThere 378389 is_equal is_less is_greater
|
||||
|
||||
is_equal:
|
||||
Goto done_compare_not_needed
|
||||
is_greater:
|
||||
# Useful if, for example, Microsoft releases .NET 4.5 SP1
|
||||
# We want to be able to simply skip install since it's not
|
||||
# needed on this system
|
||||
Goto done_compare_not_needed
|
||||
is_less:
|
||||
Goto done_compare_needed
|
||||
|
||||
done_compare_needed:
|
||||
#.NET Framework 4.5 install is *NEEDED*
|
||||
|
||||
# Microsoft Download Center EXE:
|
||||
# Web Bootstrapper: http://go.microsoft.com/fwlink/?LinkId=225704
|
||||
# Full Download: http://go.microsoft.com/fwlink/?LinkId=225702
|
||||
|
||||
# Setup looks for components\dotNET45Full.exe relative to the install EXE location
|
||||
# This allows the installer to be placed on a USB stick (for computers without internet connections)
|
||||
# If the .NET Framework 4.5 installer is *NOT* found, Setup will connect to Microsoft's website
|
||||
# and download it for you
|
||||
|
||||
# Reboot Required with these Exit Codes:
|
||||
# 1641 or 3010
|
||||
|
||||
# Command Line Switches:
|
||||
# /showrmui /passive /norestart
|
||||
|
||||
# Silent Command Line Switches:
|
||||
# /q /norestart
|
||||
|
||||
|
||||
# Let's see if the user is doing a Silent install or not
|
||||
IfSilent is_quiet is_not_quiet
|
||||
|
||||
is_quiet:
|
||||
StrCpy $dotNET_CMD_LINE "/q /norestart"
|
||||
Goto LookForLocalFile
|
||||
is_not_quiet:
|
||||
StrCpy $dotNET_CMD_LINE "/showrmui /passive /norestart"
|
||||
Goto LookForLocalFile
|
||||
|
||||
LookForLocalFile:
|
||||
# Let's see if the user stored the Full Installer
|
||||
IfFileExists "$EXEPATH\components\dotNET45Full.exe" do_local_install do_network_install
|
||||
|
||||
do_local_install:
|
||||
# .NET Framework found on the local disk. Use this copy
|
||||
|
||||
ExecWait '"$EXEPATH\components\dotNET45Full.exe" $dotNET_CMD_LINE' $EXIT_CODE
|
||||
Goto is_reboot_requested
|
||||
|
||||
# Now, let's Download the .NET
|
||||
do_network_install:
|
||||
|
||||
Var /GLOBAL dotNetDidDownload
|
||||
NSISdl::download "http://go.microsoft.com/fwlink/?LinkId=225704" "$TEMP\dotNET45Web.exe" $dotNetDidDownload
|
||||
|
||||
StrCmp $dotNetDidDownload success fail
|
||||
success:
|
||||
ExecWait '"$TEMP\dotNET45Web.exe" $dotNET_CMD_LINE' $EXIT_CODE
|
||||
Goto is_reboot_requested
|
||||
|
||||
fail:
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "Unable to download .NET Framework. ${PRODUCT_NAME} will be installed, but will not function without the Framework!"
|
||||
Goto done_dotNET_function
|
||||
|
||||
# $EXIT_CODE contains the return codes. 1641 and 3010 means a Reboot has been requested
|
||||
is_reboot_requested:
|
||||
${If} $EXIT_CODE = 1641
|
||||
${OrIf} $EXIT_CODE = 3010
|
||||
SetRebootFlag true
|
||||
${EndIf}
|
||||
|
||||
done_compare_not_needed:
|
||||
# Done dotNET Install
|
||||
Goto done_dotNET_function
|
||||
|
||||
#exit the function
|
||||
done_dotNET_function:
|
||||
|
||||
FunctionEnd
|
8
config/build/win/nsis/installer.nsh
Normal file
|
@ -0,0 +1,8 @@
|
|||
!macro customInit
|
||||
|
||||
!macroend
|
||||
|
||||
!macro customInstall
|
||||
File "${BUILD_RESOURCES_DIR}\win\bin\npcap-0.99-r7.exe"
|
||||
ExecWait '"$INSTDIR\npcap-0.99-r7.exe" /npf_startup=yes /loopback_support=yes /admin_only=no /dot11_support=yes /vlan_support=yes /winpcap_mode=yes'
|
||||
!macroend
|
0
config/build/win/nsis/uninstaller-for-ucware.nsh
Normal file
0
electron-builder.env
Normal file
|
@ -1,49 +1,18 @@
|
|||
{
|
||||
"appId": "com.lgucap.dstalk",
|
||||
"productName": "DS Talk",
|
||||
"appId": "com.lgucap.messenger",
|
||||
"asar": true,
|
||||
"protocols": {
|
||||
"name": "DS Talk",
|
||||
"schemes": ["DS Talk"]
|
||||
},
|
||||
"publish": {
|
||||
"provider": "generic",
|
||||
"url": "http://localhost:8099/client-updates/"
|
||||
},
|
||||
"mac": {
|
||||
"target": ["default"],
|
||||
"icon": "./dist/ucap-webmessenger-electron/resources/installer/woori.icns"
|
||||
},
|
||||
"dmg": {
|
||||
"title": "DS Talk",
|
||||
"icon": "./dist/ucap-webmessenger-electron/resources/installer/woori.icns"
|
||||
},
|
||||
"win": {
|
||||
"target": ["zip", "nsis"],
|
||||
"icon": "./dist/ucap-webmessenger-electron/resources/image/16_16.ico",
|
||||
"legalTrademarks": "(c) 2015 lgucap.com",
|
||||
"publisherName": "LGCNS",
|
||||
"signingHashAlgorithms": ["sha1"],
|
||||
"certificateFile": "./config/sign/www.lgcns.com.pfx",
|
||||
"certificatePassword": "it15itsm"
|
||||
},
|
||||
"linux": {
|
||||
"target": ["AppImage", "deb", "rpm", "zip", "tar.gz"],
|
||||
"icon": "./dist/ucap-webmessenger-electron/resources/linuxicon"
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": true,
|
||||
"allowToChangeInstallationDirectory": false,
|
||||
"perMachine": false,
|
||||
"differentialPackage": true
|
||||
"extraMetadata": {
|
||||
"name": "DS Talk"
|
||||
},
|
||||
"directories": {
|
||||
"buildResources": "./dist/ucap-webmessenger-electron/resources/installer/",
|
||||
"buildResources": "./config/build/",
|
||||
"output": "./dist/electron/"
|
||||
},
|
||||
"files": [
|
||||
"**/*",
|
||||
"!**/*.ts",
|
||||
"!**/*.scss",
|
||||
"!LICENSE.md",
|
||||
"!package.json",
|
||||
"!package-lock.json",
|
||||
|
@ -57,5 +26,39 @@
|
|||
"!docker/",
|
||||
"!tsconfig.json",
|
||||
"!tslint.json"
|
||||
]
|
||||
],
|
||||
"protocols": {
|
||||
"name": "DS Talk",
|
||||
"schemes": ["DS Talk"]
|
||||
},
|
||||
"publish": {
|
||||
"provider": "generic",
|
||||
"url": "http://localhost:8099/client-updates/"
|
||||
},
|
||||
"mac": {
|
||||
"target": ["default"],
|
||||
"icon": "./config/build/mac/icon/woori.icns"
|
||||
},
|
||||
"dmg": {
|
||||
"title": "DS Talk"
|
||||
},
|
||||
"win": {
|
||||
"target": ["zip", "nsis"],
|
||||
"icon": "./config/build/win/icon/daesang/16x16.ico",
|
||||
"legalTrademarks": "(c) 2015 lgucap.com",
|
||||
"publisherName": "LGCNS",
|
||||
"signingHashAlgorithms": ["sha1"],
|
||||
"certificateFile": "./config/sign/www.lgcns.com.pfx",
|
||||
"certificatePassword": "it15itsm"
|
||||
},
|
||||
"linux": {
|
||||
"target": ["AppImage", "deb", "rpm", "zip", "tar.gz"],
|
||||
"icon": "./config/build/linux/icon/woori/"
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": true,
|
||||
"allowToChangeInstallationDirectory": false,
|
||||
"perMachine": false,
|
||||
"differentialPackage": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,16 @@ import { RendererUpdater } from './lib/renderer-updater';
|
|||
import { Storage } from './lib/storage';
|
||||
|
||||
const appIconPath = __LINUX__
|
||||
? path.join(__dirname, 'resources/linuxicon', '256x256.png')
|
||||
? __DEV__
|
||||
? path.join(
|
||||
__dirname,
|
||||
'../../',
|
||||
'config/build/linux/icon/woori/',
|
||||
'256x256.png'
|
||||
)
|
||||
: path.join(__dirname, 'resources/linuxicon', '256x256.png')
|
||||
: __DEV__
|
||||
? path.join(__dirname, 'resources/image', '64_64.png')
|
||||
: path.join(__dirname, 'resources/image', '64_64.png');
|
||||
|
||||
let appWindow: AppWindow | null = null;
|
||||
|
|