Giter Club home page Giter Club logo

albino98 / deploy-helper Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 40.91 MB

Deploy Helper is a Python-Qt5 software that helps you during the releases of your applications. It allows you to create, save and execute your deployments in just one click. It's not only for programmers, it can be used by anyone who needs to copy the same files often.

License: MIT License

Python 100.00%
python3 qt5 qt python deployment deploy release-automation develpment automatic-deployment deployment-automation file-copy xml

deploy-helper's Introduction

Qt Python

splash

Deploy-Helper

Description

Deploy Helper is designed to help developers during application releases. Many times to create the release package to be copied to the servers, it is necessary to copy many files (compiled project files such as .dll, etc.) which can be located on various different locations and this can be time consuming.

So, the idea was born to solve this problem, creating a software where you can extensively configure and save your deployments (in an xml file) and execute them at any time with just one click. For now the software allows the creation, saving and execution of the deploy (copy of the files) but the next functions in addition to the modification and deletion of the deployments will be more advanced such as linking documents to deployments, scheduling of deployments, execution of other custom tasks related to deployment (such as query on the db), etc.

Obviously Deploy Helper isn't just for programmers, it can be used by anyone who needs to copy the same files often.

How it work

The software work with an xml file which is easy to understand and modify. In fact, you can modify the xml file even outside the program (with any editor) by adding, modifying or deleting the "deploy" nodes that will then be read by the program. The structure of the xml is really simple. Below an example:

<xml>
	<deploys>
		<deploy name="test_deploy">
			<sourceFilePath>C:/xampp/htdocs/index.php</sourceFilePath>
			<sourceFilePath>C:/xampp/htdocs/favicon.ico</sourceFilePath>
			<sourceFilePath>C:/xampp/htdocs/applications.html</sourceFilePath>
			<sourceFilePath>C:/xampp/htdocs/bitnami.css</sourceFilePath>
			<destinationPath>C:/xampp/htdocs/xampp</destinationPath>
		</deploy>
		<deploy name="test_deploy2">
			<sourceFilePath>C:/xampp/htdocs/bitnami.css</sourceFilePath>
			<destinationPath>C:/xampp/htdocs/xampp</destinationPath>
		</deploy>
	</deploys>
</xml>

Dark Theme:

image

image

Light Theme:

image

image

To-Do:

✔️ Deploy saving

✔️ Deploy execution

✔️ Dark and light themes

❌ Functionality to modify the deploy

❌ Functionality to delete the deploy

❌ Progress bar for large files

❌ Linking of documents to deploys

❌ Adding other customs tasks to execute during deployment

How to Use

If you want to try the software and you are using Windows, just download the 'dist' folder and run main.exe.

If you want to download and modify the project, fork this repository and follow the instructions below for the configuration.

Configuration and Requirements

⚠️ Note that the path of the qt designer can be very different so you will have to be patient to find it. In my case the path was this: C:\Users*MyUser*\AppData\Roaming\Python\Python39\site-packages\qt5_applications\Qt\designer.exe

Build (.exe)

To build the project as single .exe file you can use PyInstaller.

Intall it with: pip install pyinstaller

To start compiling the project in a single .exe file use the following command: pyinstaller.exe --onefile --windowed main.py

⚠️ Note: If you get the following error: "C:\Users\username>pyinstaller 'pyinstaller' is not recognized as an internal or external command, operable program or batch file.":

  • Find the path of pyinstaller.exe, in my case it's: "C:\Users<user>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts\pyinstaller.exe" (search it in all disk), copy pyinstaller.exe in the root directory of the project:

image

  • Then in the terminal move to the root path of the project ( "C:\Users<user>\Desktop\DeployHelper" ) and execute command: ".\pyinstaller.exe --onefile --windowed main.py". the characters ".\" are used to make trusted the pyinstaller.exe.

Now you should have "build" and "dist" folder. In "dist" folder you have main.exe.

⚠️Remember to have in "dist" folder the file "splash.PNG" (splash screen image) and file "Deploys.xml" with this content:

<xml>
	<deploys>
	</deploys>
</xml>
BuyMeACoffee

License

MIT license

License: MIT

deploy-helper's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.