From f478ec534bd749abcfb9108e9b7e55c8018526be Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Fri, 14 Feb 2025 16:05:35 -0600 Subject: [PATCH 1/7] add launch configuration for development with yarn --- .vscode/launch.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..3112e21d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Run yarn dev", + "runtimeExecutable": "yarn", + "runtimeArgs": ["dev"], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file From d6f8f4e35859ea9535918273c986bcceb9d89038 Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Fri, 14 Feb 2025 16:07:15 -0600 Subject: [PATCH 2/7] test --- .github/RELEASE_TEMPLATE.md | 19 ------------------- .github/workflows/release-pipeline.yml | 10 ++++------ .vscode/launch.json | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 25 deletions(-) delete mode 100644 .github/RELEASE_TEMPLATE.md create mode 100644 .vscode/launch.json diff --git a/.github/RELEASE_TEMPLATE.md b/.github/RELEASE_TEMPLATE.md deleted file mode 100644 index 9a78c31d..00000000 --- a/.github/RELEASE_TEMPLATE.md +++ /dev/null @@ -1,19 +0,0 @@ - - -## What's Changed -* New release pipeline by @Inve1951 -* ....... - - - -The full list of changes can be viewed at https://github.com/BetterDiscord/Installer/compare/$OLD_VERSION...$NEW_VERSION diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index d25909bf..55c17461 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -90,6 +90,9 @@ jobs: name: source - run: yarn install && yarn dist + env: + CSC_LINK: ${{ secrets.CSC_LINK }} + CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} - uses: actions/upload-artifact@v2 if: ${{ success() && matrix.os == 'ubuntu-latest' }} @@ -175,12 +178,7 @@ jobs: - name: upload release draft run: | - cat "$RELEASE_NOTES_TEMPLATE_LOCATION" \ - | sed -e 's/$SHA1/'"$SHA1"'/' - \ - | sed -e 's/$OLD_VERSION/'"$OLD_VERSION"'/' - \ - | sed -e 's/$NEW_VERSION/'"$NEW_VERSION"'/' - \ - | sed -e 's/$NAKED_INPUT_VERSION_TAG/'"$NAKED_INPUT_VERSION_TAG"'/' - \ - | gh release create "$NEW_VERSION" --draft --title "$NEW_VERSION" --target "$SHA1" --notes-file - \ + gh release create "$NEW_VERSION" --draft --title "$NEW_VERSION" --target "$SHA1" --generate-notes \ "BetterDiscord-Linux.AppImage#Linux (AppImage)" \ "BetterDiscord-Mac.zip#Mac OS (Zip)" \ "BetterDiscord-Windows.exe#Windows (Exe)" diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..3112e21d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Run yarn dev", + "runtimeExecutable": "yarn", + "runtimeArgs": ["dev"], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file From 7025a2c6309fa8e99bdf407b7b95d9667c74e446 Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Fri, 14 Feb 2025 16:07:45 -0600 Subject: [PATCH 3/7] remove launch configuration for development in VSCode --- .vscode/launch.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 3112e21d..00000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Run yarn dev", - "runtimeExecutable": "yarn", - "runtimeArgs": ["dev"], - "cwd": "${workspaceFolder}", - "console": "integratedTerminal" - } - ] -} \ No newline at end of file From 57b8f67367e1a6644807b616c1f8bccb97637da3 Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Fri, 14 Feb 2025 16:08:22 -0600 Subject: [PATCH 4/7] add launch configuration for running development with yarn --- .vscode/launch.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..3112e21d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Run yarn dev", + "runtimeExecutable": "yarn", + "runtimeArgs": ["dev"], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file From f05515e568e997a4c4991177d50b89df59c7db0e Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Fri, 14 Feb 2025 16:23:28 -0600 Subject: [PATCH 5/7] add task for installing yarn dependencies --- .vscode/tasks.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..20997738 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,12 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Install yarn dependencies", + "type": "shell", + "command": "yarn install" + } + ] +} \ No newline at end of file From 1a309eff56b089099b510385a143c8acf13f0eca Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Fri, 14 Feb 2025 16:36:11 -0600 Subject: [PATCH 6/7] update README with VSCode instructions for installing dependencies and debugging --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e3c0e8ac..272f990d 100644 --- a/README.md +++ b/README.md @@ -83,12 +83,16 @@ Run this command at the root folder to install dependencies: yarn install ``` +If you are using Visual Studio Code for development, you can go into View > Command Pallete > "Tasks: Run Tasks" > "Install yarn dependencies" to install as well. + ### 3: Run Build Script To run the installer in development mode, simply run the following command: ```ps yarn dev ``` +If you are using Visual Studio Code for development, you can debug by opening the "Run and Debug" menu and launch "Run yarn dev" + ## Additional Scripts ### Linting From 0103d4c351dea4f9509f13184f3360b0814cb751 Mon Sep 17 00:00:00 2001 From: Aholicknight Date: Fri, 14 Feb 2025 18:26:18 -0600 Subject: [PATCH 7/7] update README --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 272f990d..20b77a70 100644 --- a/README.md +++ b/README.md @@ -78,20 +78,24 @@ git clone https://github.com/BetterDiscord/installer && cd installer This will create a local copy of this repository and navigate you to the root folder of the repository. ### 2: Install Dependencies +**If you are using Visual Studio Code for development, you can go into View > Command Pallete > "Tasks: Run Tasks" > "Install yarn dependencies" to install as well.** + Run this command at the root folder to install dependencies: ```ps yarn install ``` -If you are using Visual Studio Code for development, you can go into View > Command Pallete > "Tasks: Run Tasks" > "Install yarn dependencies" to install as well. + ### 3: Run Build Script +**If you are using Visual Studio Code for development, you can debug by opening the "Run and Debug" menu and launch "Run yarn dev"** + To run the installer in development mode, simply run the following command: ```ps yarn dev ``` -If you are using Visual Studio Code for development, you can debug by opening the "Run and Debug" menu and launch "Run yarn dev" + ## Additional Scripts