Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commandLine fixes PG 0.70.0 #567

Merged
merged 9 commits into from
Aug 21, 2024
Merged

commandLine fixes PG 0.70.0 #567

merged 9 commits into from
Aug 21, 2024

Conversation

danoli3
Copy link
Member

@danoli3 danoli3 commented Aug 21, 2024

commandLine

  • fixes for backup folders for projects.
  • VS - fix vs addons dll copy (due to dll\x64 path issues) - causing issues in nightly
  • fix argument returns for command line to json style as last response: extra commands

Version to Semantic - 0.70.0

  • 70 now to Semantic Minor

Bash:

Fixed scripts/vs/test_cmdline.sh for Windows

@danoli3
Copy link
Member Author

danoli3 commented Aug 21, 2024

``-b backup``` mission critical project files.
Till the projectGenerator is stable as.
Backups are essential for the projectFiles that are overriden.
Optional command at the moment

image

for VS2022 Files backup:

solution = projectDir / (projectName + ".sln");
if (backupProjectFiles) {
	createBackup(solution, projectDir);
	createBackup({ projectDir / "addons.make" }, projectDir);
	createBackup({ projectDir / "config.make" }, projectDir);
	createBackup({ projectDir / "Makefile" }, projectDir);
	createBackup({ projectDir / (projectName + ".vcxproj") }, projectDir);
}

VSCode

if (backupProjectFiles) {
	createBackup({ projectDir / ".vscode" / "c_cpp_properties.json" }, projectDir);
	createBackup({ projectDir / ".vscode" / "extensions.json" }, projectDir);
	createBackup({ projectDir / ".vscode" / "launch.json" }, projectDir);
	createBackup({ projectDir / ".vscode" / "tasks.json" }, projectDir);
	createBackup({ projectDir / (projectName + ".code-workspace") }, projectDir);
	createBackup({ projectDir / "addons.make" }, projectDir);
	createBackup({ projectDir / "config.make" }, projectDir);
	createBackup({ projectDir / "Makefile" }, projectDir);
}

linux:

if (backupProjectFiles) {
	createBackup(solution, projectDir);
	createBackup({ projectDir / "addons.make" }, projectDir);
	createBackup({ projectDir / "config.make" }, projectDir);
	createBackup({ projectDir / "Makefile" }, projectDir);
	createBackup({ projectDir / (projectName + ".vcxproj") }, projectDir);
}

for Xcode:

if (backupProjectFiles) {
	createBackup({ xcodeProject / "project.pbxproj" }, projectDir);
	createBackup({ projectDir / "openFrameworks-Info.plist" }, projectDir);
	createBackup({ projectDir / "Project.xcconfig" }, projectDir);
	createBackup({ projectDir / "of.entitlements" }, projectDir);
	createBackup({ projectDir / "addons.make" }, projectDir);
	createBackup({ projectDir / "config.make" }, projectDir);
	createBackup({ projectDir / "Makefile" }, projectDir);
}

Fixes nightly builder errors like: (due to path \ types etc)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant