Skip to content

Commit

Permalink
Cleanup and structuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Hope-IT-Works committed Oct 27, 2024
1 parent c0ccc89 commit d378bfe
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 92 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ jobs:
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
path: .\
recurse: true
# Include your own basic security rules. Removing this option will run all the rules
#includeRule: '"PSAvoidGlobalAliases", "PSAvoidUsingConvertToSecureStringWithPlainText"'
excludeRule: '"PSAvoidTrailingWhitespace", "PSAvoidUsingWriteHost"'
output: results.sarif

# Upload the SARIF file generated in the previous step
Expand Down
77 changes: 77 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,79 @@
src/ps2exe.ps1
src/test-script.exe
Log.txt

#https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

#https://github.com/github/gitignore/blob/main/Global/Archives.gitignore
# It's better to unpack these files and commit the raw source because
# git has its own built in compression methods.
*.7z
*.jar
*.rar
*.zip
*.gz
*.gzip
*.tgz
*.bzip
*.bzip2
*.bz2
*.xz
*.lzma
*.cab
*.xar
*.zst
*.tzst

# Packing-only formats
*.iso
*.tar

# Package management formats
*.dmg
*.xpi
*.gem
*.egg
*.deb
*.rpm
*.msi
*.msm
*.msp
*.txz

#https://github.com/github/gitignore/blob/main/Global/Windows.gitignore
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ As you may have noticed, the project has not been updated for a while. I will ge
| release second build || *not specified* |
| integrate [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer) | 🔜 | *not specified* |
| release third build | 🔜 | *not specified* |
| integrate [SignTool](https://docs.microsoft.com/de-de/dotnet/framework/tools/signtool-exe) | 🔜 | *not specified* |
| release fourth build | 🔜 | *not specified* |

## Parameter Support Comparison

Expand Down
13 changes: 13 additions & 0 deletions dev/ScriptAnalyzerProfile.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<#
THIS FILE IS USED TO CONFIGURE THE SCRIPT ANALYZER RULES FOR THE PROJECT.
DOCUMENTATION FOR THIS CONFIGURATION FILE CAN BE FOUND AT:
https://learn.microsoft.com/en-us/powershell/module/psscriptanalyzer/invoke-scriptanalyzer?view=ps-modules#-settings
EXCLUDED RULES
- PSAvoidTrailingWhitespace: This rule is disabled, because poshgui.com output always has trailing whitespaces.
- PSAvoidUsingWriteHost: This rule is disabled, because it can be ignored for PowerShell 5 and later.
#>
@{
ExcludeRules = @('PSAvoidTrailingWhitespace', 'PSAvoidUsingWriteHost')
}
29 changes: 27 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
"dependencies":{
"Win-PS2EXE":"MScholtes/Win-PS2EXE"
{
"name": "ps2exe-gui",
"version": "1.0.0",
"description": "advanced graphical user interface for ps2exe",
"dependencies": {
"ps2exe": "MScholtes/Win-PS2EXE"
},
"devDependencies": {
"PSScriptAnalyzer": "PowerShell/PSScriptAnalyzer"
},
"main": "src/PS2EXE-GUI.ps1",
"directories": {
"doc": "docs"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Hope-IT-Works/PS2EXE-GUI.git"
},
"author": "Hope-IT-Works",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/Hope-IT-Works/PS2EXE-GUI/issues"
},
"homepage": "https://github.com/Hope-IT-Works/PS2EXE-GUI#readme"
}
Loading

0 comments on commit d378bfe

Please sign in to comment.