-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from gokulprathin8/windows/autodeploy
Windows/autodeploy
- Loading branch information
Showing
9 changed files
with
231 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from subprocess import Popen | ||
import os | ||
|
||
script_dir = os.path.dirname(os.path.realpath(__file__)) | ||
bat_path = os.path.join(script_dir, "launch.bat") | ||
|
||
p = Popen(bat_path, cwd=script_dir) | ||
stdout, stderr = p.communicate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# -*- mode: python ; coding: utf-8 -*- | ||
|
||
|
||
a = Analysis( | ||
['binder.py'], | ||
pathex=[], | ||
binaries=[], | ||
datas=[], | ||
hiddenimports=[], | ||
hookspath=[], | ||
hooksconfig={}, | ||
runtime_hooks=[], | ||
excludes=[], | ||
noarchive=False, | ||
) | ||
pyz = PYZ(a.pure) | ||
|
||
exe = EXE( | ||
pyz, | ||
a.scripts, | ||
[], | ||
exclude_binaries=True, | ||
name='binder', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
console=True, | ||
disable_windowed_traceback=False, | ||
argv_emulation=False, | ||
target_arch=None, | ||
codesign_identity=None, | ||
entitlements_file=None, | ||
) | ||
coll = COLLECT( | ||
exe, | ||
a.binaries, | ||
a.datas, | ||
strip=False, | ||
upx=True, | ||
upx_exclude=[], | ||
name='binder', | ||
) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Application] | ||
name=Geoweaver | ||
version=1.0.0 | ||
|
||
[Build] | ||
installer_name=Geoweaver_Installer.exe | ||
# No 'entry_point' or 'Python' section needed, as we are not directly running a Python script | ||
|
||
[Include] | ||
files = dist/geoweaver/* # Include the entire directory where PyInstaller output the executable | ||
|
||
[Command run] | ||
command=dist/geoweaver/geoweaver.exe | ||
# The above line should point to the location of the .exe file within the included files | ||
|
||
[Shortcuts] | ||
Geoweaver=run | ||
Geoweaver (Desktop)=run | ||
# The icon is specified here, pointing to the icon file within the included files | ||
icon=dist/geoweaver/geoweaver.ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
; Define the name of the installer | ||
OutFile "GeoweaverInstaller.exe" | ||
|
||
; Define the installation directory | ||
InstallDir "$PROGRAMFILES\Geoweaver" | ||
|
||
; Define the package's properties | ||
Name "Geoweaver" | ||
BrandingText "Geoweaver Installation" | ||
Icon "geoweaver.ico" | ||
|
||
; Default installation section | ||
Section "Install Geoweaver" | ||
|
||
; Set the output path to the installation directory | ||
SetOutPath $INSTDIR | ||
|
||
; Include the files from the dist/geoweaver directory | ||
File /r "D:\a\Geoweaver\Geoweaver\dist\geoweaver\*.*" | ||
|
||
; Create a desktop shortcut | ||
CreateShortCut "$DESKTOP\Geoweaver.lnk" "$INSTDIR\geoweaver.exe" "" "$INSTDIR\_internal\geoweaver.ico" | ||
|
||
SectionEnd | ||
|
||
; Uninstallation section | ||
Section "Uninstall" | ||
|
||
; Remove the application's files | ||
RMDir /r $INSTDIR | ||
|
||
; Remove the desktop shortcut | ||
Delete "$DESKTOP\Geoweaver.lnk" | ||
|
||
SectionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
<Product Id="*" Name="GeoweaverApp" Version="1.0.0.0" Manufacturer="YourCompany" UpgradeCode="YOUR-GUID-HERE"> | ||
<Package InstallerVersion="200" Compressed="yes" /> | ||
|
||
<Media Id="1" Cabinet="geoweaver.cab" EmbedCab="yes" /> | ||
|
||
<Directory Id="TARGETDIR" Name="SourceDir"> | ||
<Directory Id="ProgramFilesFolder"> | ||
<Directory Id="INSTALLFOLDER" Name="GeoweaverApp" /> | ||
</Directory> | ||
</Directory> | ||
|
||
<Feature Id="ProductFeature" Title="GeoweaverApp" Level="1"> | ||
<ComponentGroupRef Id="ProductComponents" /> | ||
</Feature> | ||
|
||
<DirectoryRef Id="INSTALLFOLDER"> | ||
<Component Id="GeoweaverAppComponent" Guid="YOUR-ANOTHER-GUID-HERE"> | ||
<File Id="GeoweaverExecutable" Source="path\to\your\GeoweaverExecutable.exe" /> | ||
<!-- Add more files as needed --> | ||
</Component> | ||
</DirectoryRef> | ||
|
||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | ||
<ComponentRef Id="GeoweaverAppComponent" /> | ||
</ComponentGroup> | ||
</Product> | ||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@echo off | ||
start /min cmd /c java -jar geoweaver.jar | ||
:LOOP | ||
timeout /t 5 | ||
netstat -ano | find "8070" >nul | ||
if errorlevel 1 goto LOOP | ||
start http://localhost:8070/Geoweaver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
block_cipher = None | ||
|
||
a = Analysis(['binder.py'], | ||
pathex=['path_to_your_script'], | ||
binaries=[], | ||
datas=[('launch.bat', '.'), ('geoweaver.jar', '.'), ('geoweaver.ico', '.')], | ||
hiddenimports=[], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher, | ||
noarchive=False) | ||
pyz = PYZ(a.pure, a.zipped_data, | ||
cipher=block_cipher) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
[], | ||
exclude_binaries=True, | ||
name='geoweaver', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
console=True, | ||
icon='geoweaver.ico') | ||
coll = COLLECT(exe, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
strip=False, | ||
upx=True, | ||
upx_exclude=[], | ||
name='geoweaver', | ||
dest_folder='.') |