Skip to content

Commit

Permalink
Merge branch 'main' into na-defender-toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jul 31, 2023
2 parents f23d0e2 + ded7ed2 commit a310dbe
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 78 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/apbx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,83 @@ on:
- 'src/**'

jobs:
package-build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
fetch-depth: 2

- name: Check for modifications & copy .yamls
id: check_modifications
run: |
$files = git diff-tree --no-commit-id --name-only -r HEAD | Where-Object { $_ -like "src/sxsc/*.yaml" }
if ($files -ne $null) {
$changes = 'true'
$configs = "..\configs"
mkdir $configs | Out-Null
foreach ($file in $files) {
Write-Output "Copying: $file"
Copy-Item $file $configs -Force
}
} else {$changes = 'false'}
echo "CBS_CHANGES=$changes" | Out-File -FilePath $Env:GITHUB_ENV -Encoding UTF8 -Append
- name: Clone the sxsc repository
id: clone_repo
run: |
git clone --depth=1 https://github.com/Atlas-OS/sxsc
Copy-Item -Path "configs" -Destination ".\sxsc\configs" -Recurse -Force
working-directory: ..
if: ${{ env.CBS_CHANGES == 'true' }}

- name: Build CAB
run: |
Write-Host "Installing dependencies..."
pip install -r requirements.txt | Out-Null
$packagePath = "..\Atlas\src\playbook\Executables\AtlasModules\Packages"
mkdir $packagePath -EA SilentlyContinue | Out-Null
Get-ChildItem -Recurse "configs" -Filter *.yaml | ForEach-Object {
Write-Host "`nProcessing $($_.Name)`n------------------------------------------------------"
Copy-Item -Path $_.FullName -Destination "cfg.yaml" -Force | Out-Null
Write-Host "Generating package files..."
python sxs.py
if ($LASTEXITCODE -ne 0) { exit 1 }
Write-Host "Building package..."
.\build.bat
Write-Host "Copying package to AtlasModules..."
Get-ChildItem -File -Recurse -Filter *.cab | ForEach-Object {
Copy-Item -Path $_.FullName -Destination $packagePath -Force
}
Write-Host "Cleaning up..."
.\clean.bat
}
working-directory: ..\sxsc
if: ${{ steps.clone_repo.outcome != 'skipped' }}

- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "feat: auto-update CAB packages ($($env:GITHUB_SHA.Substring(0, 8)))"
git push
working-directory: src\playbook\Executables\AtlasModules\Packages
if: ${{ steps.clone_repo.outcome != 'skipped' }}

build:
needs: package-build
runs-on: ubuntu-latest

steps:
Expand Down
76 changes: 0 additions & 76 deletions .github/workflows/package-build.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions src/playbook/Executables/AtlasModules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ To verify the legitmacy of these binaries (executables), there is information pr
- SHA256 Hash: `10A9AB81DE68A6ACEBD6E0D393ECC8869A4DAE852F78CF9093740AD8752DA0DE`
- Source: https://github.com/Atlas-OS/Atlas-Utilities/releases/download/filepicker-rs-v0.1/filepicker.exe
- Repository: https://github.com/Atlas-OS/Atlas-Utilities
- Last Verified: 2022-03-05 by he3als
- Last Verified: 29/07/23 by he3als

### Multi-Choice
- Directory: `\AtlasModules\Tools\multichoice.exe`
- SHA256 Hash: `6AB2FF0163AFE0FAC4E7506F9A63293421A1880076944339700A59A06578927D`
- Source: https://github.com/Atlas-OS/Atlas-Utilities/releases/download/multichoice-v0.4/multichoice-compressed.exe
- Repository: https://github.com/Atlas-OS/Atlas-Utilities
- Last Verified: 2022-03-05 by he3als
- Last Verified: 29/07/23 by he3als
- Renamed to `multichoice.exe`

0 comments on commit a310dbe

Please sign in to comment.