Skip to content

Commit 3edbb35

Browse files
Initial commit
1 parent 20b6d7c commit 3edbb35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+4509
-0
lines changed

.classpath

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4+
<classpathentry kind="src" path="src"/>
5+
<classpathentry kind="output" path="bin"/>
6+
</classpath>

.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>JMagicProxy</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

.settings/org.eclipse.jdt.core.prefs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.8
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.release=disabled
12+
org.eclipse.jdt.core.compiler.source=1.8

custom_files/default_release/note.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Release: Default-Release
2+
WUProxy related files will be missing.

custom_files/readme.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
You will find files that will be distributed in the two distinct releases of this proxy.
2+
This folder MUST NOT be in a release.

custom_files/starttool.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
rem Simple start tool for the proxy.
3+
4+
java -jar jmagicproxy.jar
5+
pause
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@echo off
2+
cd "%~dp0"
3+
copy wupd_certificate.sed_ wupd_certificate.sed
4+
cscript "replacetool.vbs
5+
%WINDIR%\System32\iexpress /N /Q wupd_certificate.sed
6+
%WINDIR%\SysWOW64\iexpress /N /Q wupd_certificate.sed
7+
del wupd_certificate.sed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Set WshShell = WScript.CreateObject("WScript.Shell")
2+
3+
RetCode = WshShell.Run("certutil -addstore -v Root updcert.cer", 0, TRUE)
4+
If RetCode = 0 Then
5+
MsgBox "The certificate has been successfully installed !", vbInformation, "Installation success"
6+
ElseIf RetCode = -2147024156 Then
7+
MsgBox "The certificate installation failed with error " & RetCode & ". Try running the program as administrator to continue." , vbExclamation, "Installation failure"
8+
Else
9+
MsgBox "The certificate installation failed with error " & RetCode & "." , vbExclamation, "Installation failure"
10+
End If
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Set oFSO = WScript.CreateObject("Scripting.FileSystemObject")
2+
Set WshShell = CreateObject("WScript.Shell")
3+
Set oInput = oFSO.OpenTextFile("wupd_certificate.sed", 1)
4+
sData = Replace(oInput.ReadAll, "${SourceFolder}", WshShell.CurrentDirectory)
5+
sData = Replace(sData, "${TargetName}", WshShell.CurrentDirectory & "\wupdcerts_installer.exe")
6+
Set oOutput = oFSO.CreateTextFile("wupd_certificate.sed", True)
7+
oOutput.Write sData
8+
oInput.Close
9+
oOutput.Close
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
3+
cscript installer.vbs
4+
exit

0 commit comments

Comments
 (0)