Skip to content

Commit 5550a6a

Browse files
committed
Initial commit
1 parent 4bd20f6 commit 5550a6a

File tree

10 files changed

+520
-0
lines changed

10 files changed

+520
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Type '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. Windows 10]
28+
- Python Version
29+
30+
**Additional context**
31+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.gitignore

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
db.sqlite3
61+
62+
# Flask stuff:
63+
instance/
64+
.webassets-cache
65+
66+
# Scrapy stuff:
67+
.scrapy
68+
69+
# Sphinx documentation
70+
docs/_build/
71+
72+
# PyBuilder
73+
target/
74+
75+
# Jupyter Notebook
76+
.ipynb_checkpoints
77+
78+
# IPython
79+
profile_default/
80+
ipython_config.py
81+
82+
# pyenv
83+
.python-version
84+
85+
# pipenv
86+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
87+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
88+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
89+
# install all needed dependencies.
90+
#Pipfile.lock
91+
92+
# celery beat schedule file
93+
celerybeat-schedule
94+
95+
# SageMath parsed files
96+
*.sage.py
97+
98+
# Environments
99+
.env
100+
.venv
101+
env/
102+
venv/
103+
ENV/
104+
env.bak/
105+
venv.bak/
106+
107+
# Spyder project settings
108+
.spyderproject
109+
.spyproject
110+
111+
# Rope project settings
112+
.ropeproject
113+
114+
# mkdocs documentation
115+
/site
116+
117+
# mypy
118+
.mypy_cache/
119+
.dmypy.json
120+
dmypy.json
121+
122+
# Pyre type checker
123+
.pyre/

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 5x
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# gac-assembly-script
2+
3+
Simple automated script for building signed assemblies on .NET Framework.
4+
5+
Script check installed versions of .NET Framework and select a recent possible version.
6+
Sign component with Strong Name Tool and compile C# module, after creating a linked
7+
assembly with optional opportunity install to GAC (require UAC, admin permission).
8+
Output assemblies placed in the `assemblies` subfolder of the working directory.
9+
10+
## Usage example
11+
```
12+
[INFO] Available .Net versions: ['2.0.50727', '3.0', '3.5', '4', '4.0']
13+
[INFO] DonNET SDK folder: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
14+
[INFO] DonNET Framework Compiler path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
15+
[USER] Source files path
16+
> D:\Projects\2017_ApplicationsCP\BankAccountLib
17+
[INFO] Source files:
18+
\Account.cs
19+
\EnvInfo.cs
20+
\IAccount.cs
21+
\Properties\AssemblyInfo.cs
22+
[USER] Enter component name(default BankAccountLib): NZEBankAccountComponent
23+
[DONE] Check output directory: D:\Projects\2017_GAC\dist\out
24+
[DONE] Strong key pair created: NZEBankAccountComponent.snk
25+
[DONE] DotNET module compiled: NZEBankAccountComponent.netmodule
26+
[DONE] Assembly successful linked: NZEBankAccountComponent.dll
27+
[USER] Install to GAC(Default no)[Y, n]: Y
28+
Assembly successfully added to the cache
29+
[DONE] Install assembly to GAC.
30+
The Global Assembly Cache contains the following assemblies:
31+
NZEBankAccountComponent, Version=1.0.0.0, Culture=neutral, PublicKeyToken=266683df4fb10a4f, processorArchitecture=MSIL
32+
33+
Number of items = 1
34+
Success.
35+
36+
Press ENTER to exit.
37+
```
38+
39+
## Build Windows Application
40+
41+
To create runnable execute application use next:
42+
```bash
43+
pyinstaller --onefile --console gac.py
44+
```
45+
[More info about PyInstaller](https://www.pyinstaller.org/)
46+
47+
## Requirements
48+
49+
* Python 3.4 or later
50+
* pyinstaller
51+
52+
## Support & Contributing
53+
Anyone is welcome to contribute. If you decide to get involved, please take a moment and check out the following:
54+
55+
* [Bug reports](.github/ISSUE_TEMPLATE/bug_report.md)
56+
* [Feature requests](.github/ISSUE_TEMPLATE/feature_request.md)
57+
58+
## License
59+
60+
The code is available under the [MIT license](LICENSE).

__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)