-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from meetrevision/dev
24.12
- Loading branch information
Showing
93 changed files
with
2,724 additions
and
3,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Archive and Pre-Release | ||
|
||
on: | ||
# Allow manual triggering | ||
workflow_dispatch: | ||
|
||
env: | ||
FILENAME: 'Revi-PB-${{ github.event.workflow_run.started_at }}.apbx' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: 'dev' | ||
|
||
- name: Set version | ||
id: set_version | ||
run: | | ||
# Get current date in "YY.MM.DD" format | ||
CURRENT_DATE=$(date +%y.%m.%d) | ||
echo "VERSION=${CURRENT_DATE}" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Update version | ||
run: | | ||
$version = "${{ env.VERSION }}" | ||
$playbookConfPath = "src\playbook.conf" | ||
$finalizeCMDPath = "src\Executables\FINALIZE.cmd" | ||
(Get-Content -Path $playbookConfPath) -replace '<Version>.*</Version>', "<Version>$version</Version>" | Set-Content -Path $playbookConfPath | ||
(Get-Content -Path $finalizeCMDPath) -replace 'set version=.+', "set version=$version" | Set-Content -Path $finalizeCMDPath | ||
shell: pwsh | ||
|
||
- name: Archive content | ||
run: | | ||
7z a -pmalte -mhe=on "Revi-PB-${{ env.VERSION }}.apbx" ./src/* | ||
- name: Generate SHA256 | ||
run: | | ||
$hash = (Get-FileHash -Algorithm SHA256 -Path "Revi-PB-${{ env.VERSION }}.apbx").Hash | ||
echo ("HASH=" + $hash) >> $env:GITHUB_ENV | ||
- name: Release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} # Uses GitHub token for authentication | ||
file: "Revi-PB-${{ env.VERSION }}.apbx" | ||
asset_name: "Revi-PB-${{ env.VERSION }}.apbx" | ||
tag: ${{ env.VERSION }} | ||
overwrite: true | ||
release_name: ${{ env.VERSION }} | ||
prerelease: true # Set to true for pre-release | ||
body: | | ||
# Pre-release Download ✨ | ||
## ⚠️ This is a pre-release version for testing purposes. Installing this can cause issues and may require you to reinstall Windows, use at your own risk. ⚠️ | ||
SHA256: `${{ env.HASH }}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.apbx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"redhat.vscode-yaml" | ||
"redhat.vscode-yaml", | ||
"ms-vscode.powershell", | ||
"ms-vscode.powershell" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
title: Remove Win32 apps | ||
description: Removal of Win32 apps | ||
privilege: TrustedInstaller | ||
actions: | ||
|
||
# Microsoft Edge | ||
- !writeStatus: {status: "Removing MS Edge", option: "remove-edge"} | ||
- !taskKill: {name: "MicrosoftEdgeUpdate", errorAction: Ignore, option: "remove-edge"} | ||
- !taskKill: {name: "msedge", errorAction: Ignore, option: "remove-edge"} | ||
- !taskKill: {name: "MicrosoftEdge*", errorAction: Ignore, option: "remove-edge"} | ||
- !taskKill: {name: "setup", errorAction: Ignore, pathContains: "\\Edge", option: "remove-edge"} | ||
|
||
# Remove the new Copilot UWP app before removing Edge to avoid leftovers | ||
- !powerShell: | ||
option: "remove-edge" | ||
exeDir: true | ||
errorAction: Ignore | ||
weight: 30 | ||
command: >- | ||
.\APPX-REMOVER.ps1 -Packages 'Microsoft.Copilot' | ||
- !powerShell: | ||
command: '.\EDGE.ps1 -Mode EdgeBrowser' | ||
exeDir: true | ||
runas: currentUserElevated | ||
option: "remove-edge" | ||
weight: 40 | ||
|
||
- !powerShell: | ||
option: "remove-edge" | ||
exeDir: true | ||
errorAction: Ignore | ||
weight: 30 | ||
command: >- | ||
.\APPX-REMOVER.ps1 -Packages @( | ||
'Microsoft.Copilot', | ||
'Microsoft.MicrosoftEdge', | ||
'Microsoft.MicrosoftEdgeDevToolsClient' | ||
) | ||
- !file: {path: "%ProgramFiles(x86)%\\Microsoft\\Edge", option: "remove-edge", weight: 50} | ||
|
||
|
||
# OneDrive | ||
- !writeStatus: {status: "Removing OneDrive", option: "remove-onedrive"} | ||
- !taskKill: {name: "OneDriveStandaloneUpdater", errorAction: Ignore, option: "remove-onedrive"} | ||
- !taskKill: {name: "OneDriveSetup", errorAction: Ignore, option: "remove-onedrive"} | ||
- !taskKill: {name: "OneDrive*", errorAction: Ignore, option: "remove-onedrive"} | ||
|
||
- !run: {exeDir: true, exe: "ONED.cmd", option: "remove-onedrive", weight: 40} | ||
- !file: {path: "%SystemDrive%\\OneDriveTemp", option: "remove-onedrive"} | ||
- !file: {path: "%ProgramData%\\Microsoft OneDrive", option: "remove-onedrive"} | ||
|
||
- !powerShell: | ||
option: "remove-onedrive" | ||
# runas: currentUserElevated | ||
wait: true | ||
exeDir: true | ||
errorAction: Ignore | ||
weight: 10 | ||
command: >- | ||
.\APPX-REMOVER.ps1 -Packages @( | ||
'OneDrive', | ||
'microsoft.microsoftskydrive' | ||
) |
Oops, something went wrong.