diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 296cad8..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,96 +0,0 @@ -workflow: - rules: - - if: $CI_COMMIT_TAG - when: always - - when: never - -variables: - GIT_STRATEGY: none - GIT_CHECKOUT: "false" - ErrorActionPreference: STOP - GIT_TEST_DEBUG_UNSAFE_DIRECTORIES: "true" - - # Unreal Engine 4 Project Settings - MOD_NAME: "RefinedRDApi" - MOD_REPO: "refined-rd/sf_mod_refinedrdapi.git" - MOD_ID: "B24emzbs6xVZQr" - SML_DIR: "E:/SF/SML" - ENGINE_DIR: "F:/5.2.1-CSS" - BUILT_MODS_DIR: "$CI_PROJECT_DIR/BuiltMods" - DEV_BUILDS_DIR: "$CI_PROJECT_DIR/DevBuilds" - -stages: - - setup - - compile - - build - - package - - deploy - -1-pull-sml: - stage: setup - script: - - "if (!(Test-Path $BUILT_MODS_DIR)) {New-Item -ItemType Directory -Force -Path $BUILT_MODS_DIR}" - - "if (!(Test-Path $DEV_BUILDS_DIR)) {New-Item -ItemType Directory -Force -Path $DEV_BUILDS_DIR}" - - "Remove-Item $BUILT_MODS_DIR/*" - - "Remove-Item $DEV_BUILDS_DIR/*" - - "if (!(Test-Path $SML_DIR -PathType Container)) {git clone --branch master https://github.com/satisfactorymodding/SatisfactoryModLoader.git $SML_DIR}" - -2-install-wwise: - stage: setup - variables: - WWISE_VERSION: "2022.1.5.8242" - script: - - "cd $SML_DIR" - - "if ((Test-Path $SML_DIR/Plugins/Wwise) -eq $true){ exit 0 }" - - 'E:/SF/Scripts/wwise-cli.exe integrate-ue --integration-version "2022.1.5.2714" --project "$SML_DIR/FactoryGame.uproject"' - -3-pull-mod: - stage: setup - script: - - "cd $SML_DIR/Mods" - - "if (!(Test-Path $SML_DIR/Mods/$MOD_NAME -PathType Container)) {git clone --branch ue5 git@10.10.10.6:$MOD_REPO $SML_DIR/Mods/$MOD_NAME}" - - "cd $SML_DIR/Mods/$MOD_NAME" - - "git fetch --all" - - "git reset --hard origin/ue5" - -4-header-update: - stage: setup - script: - - "cd E:/SF/Scripts/sml-fixer" - - "./sml-fixer.exe" - -1-gen-vs-files: - stage: compile - script: - - "cd $SML_DIR" - - '& "$ENGINE_DIR/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe" -projectfiles -project="$SML_DIR/FactoryGame.uproject" -game -rocket -progress' - -2-compile-editor: - stage: compile - script: - - '& "$ENGINE_DIR/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe" Development Win64 -project="$SML_DIR/FactoryGame.uproject" -TargetType="Editor" -progress' - -1-build-mod: - stage: build - script: - - "$UPlugin = (Get-Content $SML_DIR/Mods/$MOD_NAME/$MOD_NAME.uplugin | convertfrom-json)" - - '$UPlugin.SemVersion = $(Get-Content "$SML_DIR/Mods/$MOD_NAME/VERSION")' - - '$UPlugin.VersionName = $(Get-Content "$SML_DIR/Mods/$MOD_NAME/VERSION")' - - '$Version="$($UPlugin.SemVersion)"' - - "($UPlugin | convertto-json -Depth 100) -replace '\\u0026', '&' | Set-Content $SML_DIR/Mods/$MOD_NAME/$MOD_NAME.uplugin" - - 'Write-Host "Building $MOD_NAME $($Version)"' - - '& "$ENGINE_DIR/Engine/Build/BatchFiles/RunUAT.bat" -ScriptsForProject="$SML_DIR/FactoryGame.uproject" PackagePlugin -Project="$SML_DIR/FactoryGame.uproject" -dlcname="$MOD_NAME" -build -server -clientconfig=Shipping -serverconfig=Shipping -platform=Win64 -serverplatform=Win64+Linux -nocompileeditor -installed -merge' - - 'Copy-Item "$SML_DIR/Saved/ArchivedPlugins/$MOD_NAME/$MOD_NAME.zip" "$BUILT_MODS_DIR/$MOD_NAME.$Version.zip" -Force' - artifacts: - paths: - - ./BuiltMods/*.zip - expire_in: 1 month - -deploy-live: - stage: deploy - script: - - 'cd "$CI_PROJECT_DIR"' - - '$File = (Get-ChildItem "./BuiltMods/$MOD_NAME*").FullName' - - '$APIURL="https://api.ficsit.app"' - - '& "E:/SF/Scripts/ficsit_windows_amd64.exe" smr upload --api-base $APIURL --api-key $FICSIT_TOKEN "$MOD_ID" "$File" "$CHANGELOG"' - when: manual diff --git a/.gitlab-ci.yml.old b/.gitlab-ci.yml.old deleted file mode 100644 index dd94ec0..0000000 --- a/.gitlab-ci.yml.old +++ /dev/null @@ -1,73 +0,0 @@ -workflow: - rules: - - when: always - - -variables: - GIT_STRATEGY: none - GIT_CHECKOUT: "false" - ErrorActionPreference: STOP - - # Unreal Engine 4 Project Settings - MOD_NAME: "RefinedRDLib" - MOD_VERSION: "1.0.18" - GIT_TEST_DEBUG_UNSAFE_DIRECTORIES: "true" - -stages: - - setupenv - - compile - - package - - deploy - -setup_env: - stage: setupenv - script: - - "C:\\BuildScripts\\SF\\01-SetupEnv.ps1" - -setup_plugins: - stage: setupenv - script: - - "C:\\BuildScripts\\SF\\02-SetupPlugins.ps1" - -compile-dev: - variables: - BuildConfig: "Development Editor" - BuildPlatform: "Win64" - stage: compile - script: - - "C:\\BuildScripts\\SF\\03-CompileMod.ps1" - -compile-client: - variables: - BuildConfig: "Shipping" - BuildPlatform: "Win64" - stage: compile - script: - - "C:\\BuildScripts\\SF\\03-CompileMod.ps1" - -compile-winserver: - variables: - BuildConfig: "Shipping Server" - BuildPlatform: "Win64" - stage: compile - script: - - "C:\\BuildScripts\\SF\\03-CompileMod.ps1" - -compile-linuxserver: - variables: - BuildConfig: "Shipping Server" - BuildPlatform: "Linux" - stage: compile - script: - - "C:\\BuildScripts\\SF\\03-CompileMod.ps1" - -package: - stage: package - script: - - "C:\\BuildScripts\\SF\\04-PackageMod.ps1" - -deploy-live: - stage: deploy - script: - - "C:\\BuildScripts\\SF\\06-DeployLive.ps1" - when: manual \ No newline at end of file diff --git a/bump.sh b/bump.sh index 2282a7f..265ab2d 100644 --- a/bump.sh +++ b/bump.sh @@ -55,6 +55,8 @@ if [ -f VERSION ]; then fi echo -e "${NOTICE_FLAG} Will set new version to be ${WHITE}$INPUT_STRING${RESET}" echo -en $INPUT_STRING >VERSION + sed -i "s/\"VersionName\": \"[0-9]*\.[0-9]*\.[0-9]*\"/\"VersionName\": \"$INPUT_STRING\"/g" *.uplugin + sed -i "s/\"SemVersion\": \"[0-9]*\.[0-9]*\.[0-9]*\"/\"SemVersion\": \"$INPUT_STRING\"/g" *.uplugin echo "## $INPUT_STRING ($NOW)" >tmpfile git log --pretty=format:" - %s" "v$BASE_STRING"...HEAD >>tmpfile echo "" >>tmpfile @@ -64,7 +66,7 @@ if [ -f VERSION ]; then echo -e "$ADJUSTMENTS_MSG" read echo -e "$PUSHING_MSG" - git add CHANGELOG.md VERSION + git add CHANGELOG.md VERSION *.uplugin git commit -m "Bump version to ${INPUT_STRING}." git push git tag -a -m "Tag version ${INPUT_STRING}." "v$INPUT_STRING"