Skip to content

Commit

Permalink
fix files for steam
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Nov 7, 2024
1 parent 12e9e21 commit c993ec1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pbpy/pbsteamcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import steam.protobufs.steammessages_partnerapps_pb2 # don't remove
from steam.client import SteamClient

from pbpy import pbconfig, pblog, pbtools
from pbpy import pbconfig, pbinfo, pblog, pbtools

drm_upload_regex = re.compile(
r"https:\/\/partnerupload\.steampowered\.com\/upload\/(\d+)"
Expand Down Expand Up @@ -148,8 +148,14 @@ def push_app():
if not drm_exe_path.is_file():
pblog.error("steamcmd/drm/targetbinary does not exist.")
return False
with open(drm_exe_path.parent / "steam_appid.txt", "w") as appid_file:
appid_file.write(drm_app_id)
thirdparty_path = Path(pbinfo.format_repo_folder("/thirdpartylegalnotices.txt"))
thirdparty_dst = publish_stagedir
if thirdparty_path.exists():
for dst in thirdparty_dst.glob("*/"):
shutil.copy(thirdparty_path, dst)
if False:
with open(drm_exe_path.parent / "steam_appid.txt", "w") as appid_file:
appid_file.write(drm_app_id)
drm_command = base_steamcmd_command.copy()
drm_output = (
Path(pbconfig.config_filepath).parent
Expand Down

0 comments on commit c993ec1

Please sign in to comment.