Skip to content

Commit

Permalink
Global rename repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
Wend4r committed Sep 26, 2024
1 parent dd60d6f commit 654a07e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/cmake-multiple-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ jobs:
mkdir -p build
cd build
cmake -DPY3LM_GITHUB_ACTIONS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DPY3LM_VERSION="${{ needs.setup.outputs.buildnumber }}" -DPY3LM_PACKAGE="py3lm-build-${{ needs.setup.outputs.buildnumber }}-windows-${{ env.GITHUB_SHA_SHORT }}" ..
cmake --build . --target py3-12-lang-module --config ${{ env.BUILD_TYPE }} -- /m
cmake --build . --target plugify-module-python3.12 --config ${{ env.BUILD_TYPE }} -- /m
- name: Clean build directory
shell: pwsh
run: |
New-Item -ItemType Directory -Path build\output\bin -Force
Move-Item -Path build\${{ env.BUILD_TYPE }}\py3-12-lang-module.dll -Destination build\output\bin
Move-Item -Path build\py3-12-lang-module.pmodule -Destination build\output
Move-Item -Path build\${{ env.BUILD_TYPE }}\plugify-module-python3.12.dll -Destination build\output\bin
Move-Item -Path build\plugify-module-python3.12.pmodule -Destination build\output
$LIB_PATH = (Get-Item -Path 'build\lib' -Force).Target
Move-Item -Path $LIB_PATH -Destination build\output
New-Item -ItemType Directory -Path build\output\python3.12 -Force
Expand Down Expand Up @@ -119,13 +119,13 @@ jobs:
mkdir -p build
cd build
cmake -DPY3LM_GITHUB_ACTIONS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DPY3LM_VERSION="${{ needs.setup.outputs.buildnumber }}" -DPY3LM_PACKAGE="py3lm-build-${{ needs.setup.outputs.buildnumber }}-linux-${{ env.GITHUB_SHA_SHORT }}" ..
cmake --build . --target py3-12-lang-module --config ${{ env.BUILD_TYPE }} -- -j
cmake --build . --target plugify-module-python3.12 --config ${{ env.BUILD_TYPE }} -- -j
- name: Clean build directory
run: |
mkdir -p build/output/bin
mv build/libpy3-12-lang-module.so build/output/bin
mv build/py3-12-lang-module.pmodule build/output
mv build/libplugify-module-python3.12.so build/output/bin
mv build/plugify-module-python3.12.pmodule build/output
mv "$(readlink -f build/lib)" build/output
PY3_PATH=$(readlink build/python3.12)
mkdir -p build/output/python3.12
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
package_name = 'py3lm-build-${{ needs.setup.outputs.buildnumber }}-{}-${{ env.GITHUB_SHA_SHORT }}'
checksum_linux = '${{ needs.publish.outputs.checksum_linux }}'
checksum_windows = '${{ needs.publish.outputs.checksum_windows }}'
json_url = 'https://untrustedmodders.github.io/py3-12-lang-module/py3-12-lang-module.json'
json_url = 'https://untrustedmodders.github.io/plugify-module-python3.12/plugify-module-python3.12.json'
def load_json_from_url(url):
try:
Expand All @@ -242,8 +242,8 @@ jobs:
except requests.RequestException:
return {
"content": {
"py3-12-lang-module": {
"name": "py3-12-lang-module",
"plugify-module-python3.12": {
"name": "plugify-module-python3.12",
"type": "python3",
"author": "untrustedmodders",
"description": "Adds support for Python3 plugins",
Expand All @@ -260,11 +260,11 @@ jobs:
new_version = {
"version": version,
"checksum": f"{checksum}",
"download": f"https://github.com/untrustedmodders/py3-12-lang-module/releases/download/v{version}/{package.format(platform)}.zip",
"download": f"https://github.com/untrustedmodders/plugify-module-python3.12/releases/download/v{version}/{package.format(platform)}.zip",
"platforms": [f"{platform}"]
}
versions = data["content"]["py3-12-lang-module"]["versions"]
versions = data["content"]["plugify-module-python3.12"]["versions"]
versions.append(new_version)
if len(versions) > 10:
Expand All @@ -275,7 +275,7 @@ jobs:
data = load_json_from_url(json_url)
data = append_new_version(data, version_number, checksum_windows, package_name, "windows")
data = append_new_version(data, version_number, checksum_linux, package_name, "linux")
save_json('build/repo/py3-12-lang-module.json', data)
save_json('build/repo/plugify-module-python3.12.json', data)
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(POLICY CMP0135)
endif()


project(py3-12-lang-module VERSION 1.0.0.0 DESCRIPTION "Python 3.12 Language Module" HOMEPAGE_URL "https://github.com/untrustedmodders/py3-12-lang-module" LANGUAGES CXX)
project(plugify-module-python3.12 VERSION 1.0.0.0 DESCRIPTION "Python 3.12 Language Module" HOMEPAGE_URL "https://github.com/untrustedmodders/plugify-module-python3.12" LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ The Plugify Python Language Module is a powerful extension for the Plugify proje
1. Clone this repository:

```bash
git clone https://github.com/untrustedmodders/py3-12-lang-module.git
cd py3-12-lang-module
git clone https://github.com/untrustedmodders/plugify-module-python3.12.git
cd plugify-module-python3.12
git submodule update --init --recursive
```

Expand Down
8 changes: 4 additions & 4 deletions py3-12-lang-module.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"content": {
"py3-12-lang-module": {
"name": "py3-12-lang-module",
"plugify-module-python3.12": {
"name": "plugify-module-python3.12",
"type": "python3",
"author": "untrustedmodders",
"description": "Adds support for Python3 plugins",
"versions": [
{
"version": 1,
"checksum": "",
"download": "https://github.com/untrustedmodders/py3-12-lang-module/releases/download/v1.0/py3-12-lang-module.zip",
"checksum": "",
"download": "https://github.com/untrustedmodders/plugify-module-python3.12/releases/download/v1.0/plugify-module-python3.12.zip",
"platforms": [
]
}
Expand Down
6 changes: 3 additions & 3 deletions py3-12-lang-module.pmodule.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"description": "Adds support for Python3 plugins",
"createdBy": "untrustedmodders",
"createdByURL": "https://github.com/untrustedmodders/",
"docsURL": "https://github.com/untrustedmodders/py3-12-lang-module/blob/main/README.md",
"downloadURL": "https://github.com/untrustedmodders/cpp-lang-module/releases/download/v${PY3LM_VERSION}/${PY3LM_PACKAGE}.zip",
"updateURL": "https://untrustedmodders.github.io/py3-12-lang-module/py3-12-lang-module.json",
"docsURL": "https://github.com/untrustedmodders/plugify-module-python3.12/blob/main/README.md",
"downloadURL": "https://github.com/untrustedmodders/plugify-module-cpp/releases/download/v${PY3LM_VERSION}/${PY3LM_PACKAGE}.zip",
"updateURL": "https://untrustedmodders.github.io/plugify-module-python3.12/plugify-module-python3.12.json",
"supportedPlatforms": [],
"libraryDirectories": ["python3.12"],
"forceLoad": false
Expand Down

0 comments on commit 654a07e

Please sign in to comment.