Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
2Shirt 2019-01-11 13:11:02 -07:00
commit adda1d76ae
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
12 changed files with 98 additions and 48 deletions

View file

@ -151,6 +151,7 @@ goto Exit
call "%bin%\Scripts\init_client_dir.cmd" /Office call "%bin%\Scripts\init_client_dir.cmd" /Office
set "_odt=False" set "_odt=False"
if %L_PATH% equ 2016 (set "_odt=True") if %L_PATH% equ 2016 (set "_odt=True")
if %L_PATH% equ 2019 (set "_odt=True")
if "%_odt%" == "True" ( if "%_odt%" == "True" (
goto LaunchOfficeODT goto LaunchOfficeODT
) else ( ) else (
@ -161,7 +162,7 @@ if "%_odt%" == "True" (
rem Prep rem Prep
set "args=-aoa -bso0 -bse0 -bsp0 -p%ARCHIVE_PASSWORD%" set "args=-aoa -bso0 -bse0 -bsp0 -p%ARCHIVE_PASSWORD%"
set "config=%L_ITEM%" set "config=%L_ITEM%"
set "dest=%client_dir%\Office\%L_PATH%" set "dest=%client_dir%\Office\ODT"
set "odt_exe=%L_PATH%\setup.exe" set "odt_exe=%L_PATH%\setup.exe"
set "source=%cbin%\_Office.7z" set "source=%cbin%\_Office.7z"

View file

@ -250,35 +250,33 @@ def update_fastcopy():
# Remove existing folders # Remove existing folders
remove_from_kit('FastCopy') remove_from_kit('FastCopy')
# Download # Download installer
download_to_temp('FastCopy.zip', SOURCE_URLS['FastCopy']) download_to_temp('FastCopy.exe', SOURCE_URLS['FastCopy'])
_installer = r'{}\FastCopy.exe'.format(global_vars['TmpDir'])
# Extract installer
extract_temp_to_bin('FastCopy.zip', 'FastCopy')
_path = r'{}\FastCopy'.format(global_vars['BinDir'])
_installer = 'FastCopy354_installer.exe'
# Extract 64-bit
cmd = [
r'{}\{}'.format(_path, _installer),
'/NOSUBDIR', '/DIR={}'.format(_path),
'/EXTRACT64']
run_program(cmd)
shutil.move(
r'{}\FastCopy\FastCopy.exe'.format(global_vars['BinDir']),
r'{}\FastCopy\FastCopy64.exe'.format(global_vars['BinDir']))
# Extract 32-bit # Extract 32-bit
_path32 = r'{}\FastCopy'.format(global_vars['BinDir'])
cmd = [ cmd = [
r'{}\{}'.format(_path, _installer), _installer,
'/NOSUBDIR', '/DIR={}'.format(_path), '/NOSUBDIR', '/DIR={}'.format(_path32),
'/EXTRACT32'] '/EXTRACT32']
run_program(cmd) run_program(cmd)
# Extract 64-bit
_path64 = r'{}\FastCopyTmp'.format(global_vars['TmpDir'])
cmd = [
_installer,
'/NOSUBDIR', '/DIR={}'.format(_path64),
'/EXTRACT64']
run_program(cmd)
shutil.move(
r'{}\FastCopy.exe'.format(_path64),
r'{}\FastCopy64.exe'.format(_path32))
# Cleanup # Cleanup
os.remove(r'{}\{}'.format(_path, _installer)) remove_item(r'{}\setup.exe'.format(_path32))
os.remove(r'{}\setup.exe'.format(_path, _installer)) remove_item(_path64)
remove_from_temp('FastCopy.zip') remove_from_temp('FastCopy.exe')
def update_linux_reader(): def update_linux_reader():
@ -745,23 +743,22 @@ def update_office():
if os.path.exists(include_path): if os.path.exists(include_path):
shutil.copytree(include_path, dest) shutil.copytree(include_path, dest)
for year in ['2016']: # Download and extract
# Download and extract _odt = 'odt.exe'
name = 'odt{}.exe'.format(year) _out_path = r'{}\odt'
url = 'Office Deployment Tool {}'.format(year) download_to_temp('odt.exe', SOURCE_URLS['Office Deployment Tool'])
download_to_temp(name, SOURCE_URLS[url]) cmd = [
cmd = [ odt,
r'{}\odt{}.exe'.format(global_vars['TmpDir'], year), r'/extract:{}\odt'.format(global_vars['TmpDir']),
r'/extract:{}\{}'.format(global_vars['TmpDir'], year), '/quiet',
'/quiet', ]
] run_program(cmd)
run_program(cmd) shutil.move(
shutil.move( _out_path,
r'{}\{}'.format(global_vars['TmpDir'], year), r'{}\_Office'.format(global_vars['CBinDir']))
r'{}\_Office\{}'.format(global_vars['CBinDir'], year))
# Cleanup # Cleanup
remove_from_temp('odt{}.exe'.format(year)) remove_from_temp(odt.exe)
def update_classic_start_skin(): def update_classic_start_skin():

View file

@ -464,36 +464,60 @@ LAUNCHERS = {
'Home and Business 2016 (x32)': { 'Home and Business 2016 (x32)': {
'L_TYPE': 'Office', 'L_TYPE': 'Office',
'L_PATH': '2016', 'L_PATH': '2016',
'L_ITEM': 'hb_32.xml', 'L_ITEM': '2016_hb_32.xml',
'L_NCMD': 'True', 'L_NCMD': 'True',
}, },
'Home and Business 2016 (x64)': { 'Home and Business 2016 (x64)': {
'L_TYPE': 'Office', 'L_TYPE': 'Office',
'L_PATH': '2016', 'L_PATH': '2016',
'L_ITEM': 'hb_64.xml', 'L_ITEM': '2016_hb_64.xml',
'L_NCMD': 'True', 'L_NCMD': 'True',
}, },
'Home and Student 2016 (x32)': { 'Home and Student 2016 (x32)': {
'L_TYPE': 'Office', 'L_TYPE': 'Office',
'L_PATH': '2016', 'L_PATH': '2016',
'L_ITEM': 'hs_32.xml', 'L_ITEM': '2016_hs_32.xml',
'L_NCMD': 'True', 'L_NCMD': 'True',
}, },
'Home and Student 2016 (x64)': { 'Home and Student 2016 (x64)': {
'L_TYPE': 'Office', 'L_TYPE': 'Office',
'L_PATH': '2016', 'L_PATH': '2016',
'L_ITEM': 'hs_64.xml', 'L_ITEM': '2016_hs_64.xml',
'L_NCMD': 'True', 'L_NCMD': 'True',
}, },
'Office 365 2016 (x32)': { 'Home and Business 2019 (x32)': {
'L_TYPE': 'Office', 'L_TYPE': 'Office',
'L_PATH': '2016', 'L_PATH': '2019',
'L_ITEM': '2019_hb_32.xml',
'L_NCMD': 'True',
},
'Home and Business 2019 (x64)': {
'L_TYPE': 'Office',
'L_PATH': '2019',
'L_ITEM': '2019_hb_64.xml',
'L_NCMD': 'True',
},
'Home and Student 2019 (x32)': {
'L_TYPE': 'Office',
'L_PATH': '2019',
'L_ITEM': '2019_hs_32.xml',
'L_NCMD': 'True',
},
'Home and Student 2019 (x64)': {
'L_TYPE': 'Office',
'L_PATH': '2019',
'L_ITEM': '2019_hs_64.xml',
'L_NCMD': 'True',
},
'Office 365 2019 (x32)': {
'L_TYPE': 'Office',
'L_PATH': '2019',
'L_ITEM': '365_32.xml', 'L_ITEM': '365_32.xml',
'L_NCMD': 'True', 'L_NCMD': 'True',
}, },
'Office 365 2016 (x64)': { 'Office 365 2019 (x64)': {
'L_TYPE': 'Office', 'L_TYPE': 'Office',
'L_PATH': '2016', 'L_PATH': '2019',
'L_ITEM': '365_64.xml', 'L_ITEM': '365_64.xml',
'L_NCMD': 'True', 'L_NCMD': 'True',
}, },

View file

@ -31,7 +31,7 @@ SOURCE_URLS = {
'NirCmd32': 'https://www.nirsoft.net/utils/nircmd.zip', 'NirCmd32': 'https://www.nirsoft.net/utils/nircmd.zip',
'NirCmd64': 'https://www.nirsoft.net/utils/nircmd-x64.zip', 'NirCmd64': 'https://www.nirsoft.net/utils/nircmd-x64.zip',
'NotepadPlusPlus': 'https://notepad-plus-plus.org/repository/7.x/7.6.2/npp.7.6.2.bin.minimalist.7z', 'NotepadPlusPlus': 'https://notepad-plus-plus.org/repository/7.x/7.6.2/npp.7.6.2.bin.minimalist.7z',
'Office Deployment Tool 2016': 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_10810.33603.exe', 'Office Deployment Tool': 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_11107-33602.exe',
'ProduKey32': 'http://www.nirsoft.net/utils/produkey.zip', 'ProduKey32': 'http://www.nirsoft.net/utils/produkey.zip',
'ProduKey64': 'http://www.nirsoft.net/utils/produkey-x64.zip', 'ProduKey64': 'http://www.nirsoft.net/utils/produkey-x64.zip',
'PuTTY': 'https://the.earth.li/~sgtatham/putty/latest/w32/putty.zip', 'PuTTY': 'https://the.earth.li/~sgtatham/putty/latest/w32/putty.zip',

View file

@ -0,0 +1,7 @@
<Configuration>
<Add OfficeClientEdition="32" Channel="Current">
<Product ID="HomeBusiness2019Retail">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>

View file

@ -0,0 +1,7 @@
<Configuration>
<Add OfficeClientEdition="64" Channel="Current">
<Product ID="HomeBusiness2019Retail">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>

View file

@ -0,0 +1,7 @@
<Configuration>
<Add OfficeClientEdition="32" Channel="Current">
<Product ID="HomeStudent2019Retail">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>

View file

@ -0,0 +1,7 @@
<Configuration>
<Add OfficeClientEdition="64" Channel="Current">
<Product ID="HomeStudent2019Retail">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>