Skip to content

Commit bd42b2b

Browse files
authored
v7.0
1 parent c27cc9f commit bd42b2b

File tree

7 files changed

+29
-9
lines changed

7 files changed

+29
-9
lines changed

.github/workflows/on-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959

6060
test-choco:
6161
runs-on: windows-latest
62-
6362
steps:
6463
- uses: actions/checkout@v2
6564
- name: Try to build

.github/workflows/on-release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,19 @@ jobs:
145145
# asset_path: ./createstructure_7.0.debian.tar.xz
146146
# asset_name: createstructure_7.0.tar.xz
147147
# asset_content_type: application/zip
148-
148+
149+
test-choco:
150+
runs-on: windows-latest
151+
steps:
152+
- uses: actions/checkout@v2
153+
- name: Try to build
154+
run: |
155+
cd choco
156+
choco pack
157+
choco install createstructure -d-v -s . --pre -y --force
158+
149159
publish-choco:
160+
needs: test-choco
150161
runs-on: windows-latest
151162
steps:
152163
- name: Build and publish

choco/tools/chocolateybeforemodify.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,5 @@ if ($new_path -notlike "*$ppath*")
3434
{
3535
$new_path += ";$ppath"
3636
$new_path = $new_path.Replace(";;", ";")
37-
echo $new_path
3837
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $new_path
3938
}

choco/tools/chocolateyinstall.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ if ($new_path -notlike "*$ppath*")
3434
{
3535
$new_path += ";$ppath"
3636
$new_path = $new_path.Replace(";;", ";")
37-
echo $new_path
3837
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $new_path
39-
$env:path = $new_path
4038
}

choco/tools/chocolateyuninstall.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,5 @@ if ($new_path -like "*$ppath*")
5050
{
5151
echo "Delate unwanted path"
5252
$new_path = $new_path.Replace("$ppath", "").Replace(";;", ";")
53-
54-
echo $new_path
5553
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $new_path
5654
}

create_structure/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from sys import argv
1515

1616
__author__ = "help@castellanidavide.it"
17-
__version__ = "6.1 2021-01-03"
17+
__version__ = "7.0 2021-01-11"
1818

1919
class create_structure:
2020
def __init__ (self, tocken=None, souces=['CastellaniDavide'], organization_name="", IGNORE=[], verbose=False, answers=None):

docs/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# create_structure
2-
[![GitHub license](https://img.shields.io/badge/license-GNU-green?style=flat)](https://github.com/CastellaniDavide/cpp-create_structure/blob/master/LICENSE) ![Author](https://img.shields.io/badge/author-Castellani%20Davide-green?style=flat) ![Version](https://img.shields.io/badge/version-v6.2-blue?style=flat) ![Language Python](https://img.shields.io/badge/language-Python-yellowgreen?style=flat) ![sys.platform supported](https://img.shields.io/badge/OS%20platform%20supported-Linux,%20Windows%20&%20Mac%20OS-blue?style=flat) [![On GitHub](https://img.shields.io/badge/on%20GitHub-True-green?style=flat&logo=github)](https://github.com/CastellaniDavide/create_structure) ![PyPI](https://img.shields.io/pypi/v/createstructure)
2+
[![GitHub license](https://img.shields.io/badge/license-GNU-green?style=flat)](https://github.com/CastellaniDavide/cpp-create_structure/blob/master/LICENSE) ![Author](https://img.shields.io/badge/author-Castellani%20Davide-green?style=flat) ![Version](https://img.shields.io/badge/version-v7.0-blue?style=flat) ![Language Python](https://img.shields.io/badge/language-Python-yellowgreen?style=flat) ![sys.platform supported](https://img.shields.io/badge/OS%20platform%20supported-Linux,%20Windows%20&%20Mac%20OS-blue?style=flat) [![On GitHub](https://img.shields.io/badge/on%20GitHub-True-green?style=flat&logo=github)](https://github.com/CastellaniDavide/create_structure) ![PyPI](https://img.shields.io/pypi/v/createstructure)
33

44
## Contents
55
- [Description](#description)
@@ -23,6 +23,11 @@ With this programm you can easily create a repository on GitHub :octocat: with a
2323

2424
### Setup
2525
#### Attention: replace <SOME_WORDS> with your values
26+
- Debian/ Ubuntu using apt:
27+
- ```sudo add-apt-repository ppa:castellanidavide/createstructure; sudo apt update; sudo apt install createstructure```
28+
- Windows (using choco):
29+
- ```choco install createstructure```
30+
- ```createstrucure.exe -l``` <- for the login
2631
- All OS using pypi:
2732
- ```pip install createstructure```
2833
- Made an alias of use
@@ -50,8 +55,12 @@ With this programm you can easily create a repository on GitHub :octocat: with a
5055
- *.md
5156
- workflows
5257
- *.yml
58+
- choco
59+
- *
5360
- create_structure
5461
- __init __.py
62+
- debian
63+
- *
5564
- doc
5665
- _config.yml
5766
- LICENSE
@@ -90,6 +99,7 @@ With this programm you can easily create a repository on GitHub :octocat: with a
9099
- Try to execute this programm and check correct use
91100

92101
### Changelog
102+
- [7.0_2021-01-11](#70_2021-01-11)
93103
- [6.2_2021-01-04](#62_2021-01-04)
94104
- [6.1_2021-01-03](#61_2021-01-03)
95105
- [6.0_2020-12-16](#60_2020-12-16)
@@ -105,6 +115,11 @@ With this programm you can easily create a repository on GitHub :octocat: with a
105115
- [2.0_2020-03-24](#20_2020-03-24)
106116
- [1.0_2020-03-24](#10_2020-03-24)
107117

118+
#### 7.0_2021-01-11
119+
- Added Debian package
120+
- Added Choco package
121+
- Automate Choco package publishing
122+
108123
#### 6.2_2021-01-04
109124
- Added emoji :smile: to the output
110125

0 commit comments

Comments
 (0)