mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Merge pull request #556 from MTRNord/MTRNord/windows-installer-cleanup
refactor: Remove windows installer feature that was always broken
This commit is contained in:
commit
085d064b98
3 changed files with 3 additions and 45 deletions
10
appveyor.yml
10
appveyor.yml
|
@ -77,25 +77,19 @@ after_build:
|
||||||
- mkdir installer\packages\io.github.nhekoreborn.nheko
|
- mkdir installer\packages\io.github.nhekoreborn.nheko
|
||||||
- mkdir installer\packages\io.github.nhekoreborn.nheko\data
|
- mkdir installer\packages\io.github.nhekoreborn.nheko\data
|
||||||
- mkdir installer\packages\io.github.nhekoreborn.nheko\meta
|
- mkdir installer\packages\io.github.nhekoreborn.nheko\meta
|
||||||
- mkdir installer\packages\io.github.nhekoreborn.nheko.cleanup\meta
|
|
||||||
# Copy installer data
|
# Copy installer data
|
||||||
- copy %BUILD%\resources\nheko.ico installer\config
|
- copy %BUILD%\resources\nheko.ico installer\config
|
||||||
- copy %BUILD%\resources\nheko.png installer\config
|
- copy %BUILD%\resources\nheko.png installer\config
|
||||||
- copy %BUILD%\COPYING installer\packages\io.github.nhekoreborn.nheko\meta\license.txt
|
- copy %BUILD%\COPYING installer\packages\io.github.nhekoreborn.nheko\meta\license.txt
|
||||||
- copy %BUILD%\COPYING installer\packages\io.github.nhekoreborn.nheko.cleanup\meta\license.txt
|
|
||||||
- copy %BUILD%\deploy\installer\config.xml installer\config
|
- copy %BUILD%\deploy\installer\config.xml installer\config
|
||||||
- copy %BUILD%\deploy\installer\controlscript.qs installer\config
|
- copy %BUILD%\deploy\installer\controlscript.qs installer\config
|
||||||
- copy %BUILD%\deploy\installer\uninstall.qs installer\packages\io.github.nhekoreborn.nheko\data
|
- copy %BUILD%\deploy\installer\uninstall.qs installer\packages\io.github.nhekoreborn.nheko\data
|
||||||
- copy %BUILD%\deploy\installer\gui\package.xml installer\packages\io.github.nhekoreborn.nheko\meta
|
- copy %BUILD%\deploy\installer\gui\package.xml installer\packages\io.github.nhekoreborn.nheko\meta
|
||||||
- copy %BUILD%\deploy\installer\gui\installscript.qs installer\packages\io.github.nhekoreborn.nheko\meta
|
- copy %BUILD%\deploy\installer\gui\installscript.qs installer\packages\io.github.nhekoreborn.nheko\meta
|
||||||
- copy %BUILD%\deploy\installer\cleanup\package.xml installer\packages\io.github.nhekoreborn.nheko.cleanup\meta
|
|
||||||
- copy %BUILD%\deploy\installer\cleanup\installscript.qs installer\packages\io.github.nhekoreborn.nheko.cleanup\meta
|
|
||||||
# Amend version and date
|
# Amend version and date
|
||||||
- sed -i "s/__VERSION__/0.8.1/" installer\config\config.xml
|
- sed -i "s/__VERSION__/0.8.1/" installer\config\config.xml
|
||||||
- sed -i "s/__VERSION__/0.8.1/" installer\packages\io.github.nhekoreborn.nheko\meta\package.xml
|
- sed -i "s/__VERSION__/0.8.1/" installer\packages\io.github.nhekoreborn.nheko\meta\package.xml
|
||||||
- sed -i "s/__VERSION__/0.8.1/" installer\packages\io.github.nhekoreborn.nheko.cleanup\meta\package.xml
|
|
||||||
- sed -i "s/__DATE__/%DATE%/" installer\packages\io.github.nhekoreborn.nheko\meta\package.xml
|
- sed -i "s/__DATE__/%DATE%/" installer\packages\io.github.nhekoreborn.nheko\meta\package.xml
|
||||||
- sed -i "s/__DATE__/%DATE%/" installer\packages\io.github.nhekoreborn.nheko.cleanup\meta\package.xml
|
|
||||||
# Copy nheko data
|
# Copy nheko data
|
||||||
- xcopy NhekoData\*.* installer\packages\io.github.nhekoreborn.nheko\data\*.* /s /e /c /y
|
- xcopy NhekoData\*.* installer\packages\io.github.nhekoreborn.nheko\data\*.* /s /e /c /y
|
||||||
- move NhekoRelease\nheko.exe installer\packages\io.github.nhekoreborn.nheko\data
|
- move NhekoRelease\nheko.exe installer\packages\io.github.nhekoreborn.nheko\data
|
||||||
|
@ -107,7 +101,8 @@ after_build:
|
||||||
- set PATH=%BUILD%\tools\bin;%PATH%
|
- set PATH=%BUILD%\tools\bin;%PATH%
|
||||||
- binarycreator.exe -f -c installer\config\config.xml -p installer\packages nheko-installer.exe
|
- binarycreator.exe -f -c installer\config\config.xml -p installer\packages nheko-installer.exe
|
||||||
|
|
||||||
- mv nheko-installer.exe nheko-%APPVEYOR_REPO_TAG_NAME%-installer.exe
|
- copy nheko-installer.exe nheko-%APPVEYOR_REPO_TAG_NAME%-installer.exe
|
||||||
|
- copy nheko-installer.exe nheko-%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%-installer.exe
|
||||||
- ps: .\.ci\upload-nightly.ps1
|
- ps: .\.ci\upload-nightly.ps1
|
||||||
|
|
||||||
on_success:
|
on_success:
|
||||||
|
@ -127,3 +122,4 @@ deploy:
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: nheko_win_64.zip
|
- path: nheko_win_64.zip
|
||||||
- path: nheko-$(APPVEYOR_REPO_TAG_NAME)-installer.exe
|
- path: nheko-$(APPVEYOR_REPO_TAG_NAME)-installer.exe
|
||||||
|
- path: nheko-$(APPVEYOR_PULL_REQUEST_HEAD_COMMIT)-installer.exe
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
function Component()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Component.prototype.createOperations = function()
|
|
||||||
{
|
|
||||||
component.createOperations();
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if( installer.value("os") === "win" )
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Cleanup AppData and registry
|
|
||||||
*/
|
|
||||||
component.addElevatedOperation("Execute","UNDOEXECUTE","cmd /C reg delete HKEY_CURRENT_USER\Software\nheko\nheko /f");
|
|
||||||
var localappdata = installer.environmentVariable("LOCALAPPDATA");
|
|
||||||
if( localappdata != "" )
|
|
||||||
{
|
|
||||||
component.addElevatedOperation("Execute","UNDOEXECUTE","cmd /C rmdir "+localappdata+"\nheko /f");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch( e )
|
|
||||||
{
|
|
||||||
print( e );
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Package>
|
|
||||||
<DisplayName>Cleanup AppData and Registry</DisplayName>
|
|
||||||
<Description>Cleans up AppData and Registry when selected (logs you out) - Broken</Description>
|
|
||||||
<Version>__VERSION__</Version>
|
|
||||||
<ReleaseDate>__DATE__</ReleaseDate>
|
|
||||||
<SortingPriority>80</SortingPriority>
|
|
||||||
<Script>installscript.qs</Script>
|
|
||||||
<Checkable>false</Checkable>
|
|
||||||
</Package>
|
|
Loading…
Reference in a new issue